2024-03-25 01:38:54 +04:00
|
|
|
|
using FoodOrdersDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace FoodOrdersContracts.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;
|
|
|
|
|
|
2024-04-15 23:43:49 +04:00
|
|
|
|
[DisplayName("Максимум блюд")]
|
|
|
|
|
public int MaxCountDishs { get; set; }
|
|
|
|
|
|
2024-03-25 01:38:54 +04:00
|
|
|
|
[DisplayName("Дата открытия")]
|
|
|
|
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
public Dictionary<int, (IDishModel, int)> ShopDishs
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|