Создание контрактов и моделей

This commit is contained in:
2024-04-17 15:10:57 +04:00
parent 298892a574
commit 868d6c5c14
21 changed files with 420 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
using ServiceStationDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationContracts.ViewModels
{
public class CarViewModel : ICarModel
{
public int Id { get; set; }
[DisplayName("Номер машины")]
public string CarNumber { get; set; } = string.Empty;
[DisplayName("Бренд машины")]
public string CarBrand { get; set; } = string.Empty;
public int ExecutorId { get; set; }
public Dictionary<int, IDefectModel> CarDefects { get; set; } = new();
public Dictionary<int, ITechnicalWorkModel> CarTechnicalWorks { get; set; } = new();
}
}