CourseWork_ServiceStation/ServiceStation/ServiceStationContracts/ViewModels/DefectViewModel.cs

27 lines
729 B
C#

using ServiceStationDataModels.Enums;
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 DefectViewModel : IDefectModel
{
public int Id { get; set; }
[DisplayName("Тип неисправности")]
public string DefectType { get; set; } = string.Empty;
[DisplayName("Цена неисправности")]
public double DefectPrice { get; set; }
public int ExecutorId { get; set; }
public Dictionary<int, ICarModel> DefectCars { get; set; } = new();
}
}