CourseWork_ServiceStation/ServiceStation/ServiceStationContracts/ViewModels/RepairViewModel.cs

32 lines
889 B
C#
Raw Normal View History

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 RepairViewModel : IRepairModel
{
public int Id { get; set; }
[DisplayName("Наименование ремонта")]
public string RepairName { get; set; } = string.Empty;
[DisplayName("Статус ремонта")]
public RepairStatus Status { get; set; }
[DisplayName("Стоимость ремонта")]
public double RepairPrice { get; set; }
public int GuarantorId { get; set; }
public int DefectId { get; set; }
public Dictionary<int, ISparePartModel> RepairSpareParts { get; set; } = new();
}
}