PIbd-21_RazubaevSM_Plumbing.../PlumbingRepair/PlumbingRepairContracts/ViewModels/ShopViewModel.cs

23 lines
732 B
C#

using PlumbingRepairDataModels.Models;
using System.ComponentModel;
namespace PlumbingRepairContracts.ViewModels
{
public class ShopViewModel
{
public int Id { get; set; }
[DisplayName("Название магазина")]
public string ShopName { get; set; } = string.Empty;
[DisplayName("Адрес")]
public string Address { get; set; } = string.Empty;
[DisplayName("Максимальное количество работ")]
public int maxCountWorks { get; set; }
[DisplayName("Дата открытия")]
public DateTime DateOpening { get; set; }
public Dictionary<int, (IWorkModel, int)> ShopWorks { get; set; } = new();
}
}