PIbd-21_Putincev_D.M._FoodO.../FoodOrders/FoodOrdersContracts/ViewModels/ShopViewModel.cs

26 lines
665 B
C#
Raw Normal View History

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;
[DisplayName("Дата открытия")]
public DateTime DateOpening { get; set; } = DateTime.Now;
public Dictionary<int, (IDishModel, int)> ShopDishs
{
get;
set;
} = new();
}
}