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

22 lines
640 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
{
public class ProductViewModel : IProductModel
{
public int Id { get; set; }
[DisplayName("Название изделия")]
public string ProductName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> ProductComponents
{ get; set; } = new();
}
}