18 lines
614 B
C#
18 lines
614 B
C#
using CarRepairShopContracts.Attributes;
|
|
using CarRepairShopDataModels.Models;
|
|
|
|
namespace CarRepairShopContracts.ViewModels
|
|
{
|
|
public class RepairViewModel : IRepairModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
[Column(title: "Название ремонта", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string RepairName { get; set; } = string.Empty;
|
|
[Column(title: "Цена", width: 100)]
|
|
public double Price { get; set; }
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IComponentModel, int)> RepairComponents { get; set; } = new();
|
|
}
|
|
}
|