PIbd-23_Ivanov_V.N._Pizzeria/Pizzeria/PizzeriaContracts/ViewModels/ShopViewModel.cs

24 lines
795 B
C#
Raw Normal View History

2024-02-17 18:51:42 +04:00
using PizzeriaDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaContracts.ViewModels
{
public class ShopViewModel : IShopModel
{
public int Id { get; set; }
[DisplayName("Название")]
public string ShopName { get; set; } = string.Empty;
[DisplayName("Адрес")]
public string Adress { get; set; } = string.Empty;
[DisplayName("Дата открытия")]
public DateTime OpeningDate { get; set; }
public Dictionary<int, (IPizzaModel, int)> ShopPizzas { get; set; } = new();
[DisplayName("Вместимость")]
public int PizzaMaxCount { get; set; }
}
}