PIbd-22-Stroev-V.M.-Plumbin.../PlumbingRepair/PlumbingRepairContracts/ViewModels/WorkViewModel.cs

22 lines
628 B
C#
Raw Normal View History

2024-02-13 23:15:11 +04:00
using PlumbingRepairDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlumbingRepairContracts.ViewModels
{
2024-02-14 11:14:37 +04:00
public class WorkViewModel : IWorkModel
2024-02-13 23:15:11 +04:00
{
public int Id { get; set; }
[DisplayName("Название изделия")]
2024-02-14 11:14:37 +04:00
public string WorkName { get; set; } = string.Empty;
2024-02-13 23:15:11 +04:00
[DisplayName("Цена")]
public double Price { get; set; }
2024-02-14 11:14:37 +04:00
public Dictionary<int, (IComponentModel, int)> WorkComponents
2024-02-13 23:15:11 +04:00
{ get; set; } = new();
}
}