2024-02-11 16:43:19 +04:00
|
|
|
|
using AutomobilePlantDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AutomobilePlantContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class CarViewModel : ICarModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2024-02-12 14:42:27 +04:00
|
|
|
|
[DisplayName("Car's name")]
|
2024-02-11 16:43:19 +04:00
|
|
|
|
public string CarName { get; set; } = string.Empty;
|
2024-02-12 14:42:27 +04:00
|
|
|
|
[DisplayName("Price")]
|
2024-02-11 16:43:19 +04:00
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> CarComponents
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|