2023-02-12 22:52:23 +04:00
|
|
|
|
using AutomobilePlantDataModels.Models;
|
|
|
|
|
using System;
|
2023-02-12 20:41:23 +04:00
|
|
|
|
using System.Collections.Generic;
|
2023-02-12 22:52:23 +04:00
|
|
|
|
using System.ComponentModel;
|
2023-02-12 20:41:23 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AutomobilePlantContracts.ViewModels
|
|
|
|
|
{
|
2023-02-12 22:52:23 +04:00
|
|
|
|
public class CarViewModel : ICarModel
|
2023-02-12 20:41:23 +04:00
|
|
|
|
{
|
2023-02-12 22:52:23 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Название машины")]
|
|
|
|
|
public string CarName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Цена")]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> CarComponents { get; set; } = new();
|
2023-02-12 20:41:23 +04:00
|
|
|
|
}
|
|
|
|
|
}
|