32 lines
890 B
C#
32 lines
890 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 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();
|
|
}
|
|
}
|