PIbd-23_Starostin_I.K._Cour.../STOContracts/ViewModels/CarViewModel.cs

29 lines
954 B
C#

using STODataModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.ViewModels
{
public class CarViewModel : ICarModel
{
public int Id { get; set; }
[DisplayName("Номер")]
public string CarNumber { get; set; }
[DisplayName("Марка")]
public string CarBrand { get; set; } = string.Empty;
[DisplayName("Модель")]
public string CarModel { get; set; } = string.Empty;
[DisplayName("год производства")]
public DateTime Year { get; set; } = DateTime.MinValue;
public Dictionary<int, (ITechnicalWorkModel, int)> CarTechnicalWorks { get; set; } = new();
public Dictionary<int, (ICarPartModel, int)> CarParts { get; set; } = new();
public int ClientId { get; set; }
}
}