19 lines
544 B
C#
19 lines
544 B
C#
|
using PlumbingRepairDataModels.Models;
|
|||
|
using System.ComponentModel;
|
|||
|
|
|||
|
namespace PlumbingRepairContracts.ViewModels
|
|||
|
{
|
|||
|
public class WorkViewModel : IWorkModel
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
|
|||
|
[DisplayName("Название работ")]
|
|||
|
public string WorkName { get; set; } = string.Empty;
|
|||
|
|
|||
|
[DisplayName("Цена")]
|
|||
|
public double Price { get; set; }
|
|||
|
[DisplayName("Компоненты")]
|
|||
|
public Dictionary<int, (IComponentModel, int)> WorkComponents { get; set; } = new();
|
|||
|
}
|
|||
|
}
|