2023-02-13 23:13:13 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.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 DateOpening { get; set; } = DateTime.Now;
|
2023-03-04 10:34:01 +04:00
|
|
|
|
[DisplayName("Максимальное количество суши")]
|
|
|
|
|
public int MaxCountSushi { get; set; }
|
2023-02-13 23:13:13 +04:00
|
|
|
|
|
|
|
|
|
public Dictionary<int, (ISushiModel, int)> ListSushi
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|