20 lines
656 B
C#
20 lines
656 B
C#
using ConfectioneryDataModels.Models;
|
|
using System.ComponentModel;
|
|
namespace ConfectioneryContracts.ViewModels
|
|
{
|
|
public class ShopViewModel : IShopModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название магазина")]
|
|
public string ShopName { get; set; } = string.Empty;
|
|
[DisplayName("Адрес магазина")]
|
|
public string Address { get; set; } = string.Empty;
|
|
[DisplayName("Дата открытия")]
|
|
public DateTime DateOpen { get; set; }
|
|
[DisplayName("Вместимость")]
|
|
public int MaxCapacity { get; set; }
|
|
public Dictionary<int, (IPastryModel, int)>
|
|
ShopPastries { get; set; } = new();
|
|
}
|
|
}
|