2023-02-12 16:08:29 +03:00
|
|
|
|
using AutomobilePlantDataModels.Models;
|
2023-02-12 12:21:10 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.ComponentModel;
|
2023-02-12 16:08:29 +03:00
|
|
|
|
namespace AutomobilePlantContracts.ViewModel
|
2023-02-12 12:21:10 +03:00
|
|
|
|
{
|
2023-04-19 15:41:28 +03:00
|
|
|
|
public class CarViewModel : ICarModel
|
2023-02-12 12:21:10 +03:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Название изделия")]
|
2023-04-19 15:41:28 +03:00
|
|
|
|
public string CarName { get; set; } = string.Empty;
|
2023-02-12 12:21:10 +03:00
|
|
|
|
[DisplayName("Цена")]
|
|
|
|
|
public double Price { get; set; }
|
2023-04-19 15:41:28 +03:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> CarComponents
|
2023-02-12 12:21:10 +03:00
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|