2023-06-14 14:25:52 +04:00
|
|
|
|
using PizzeriaContracts.Attributes;
|
|
|
|
|
using PizzeriaDataModels.Models;
|
2023-02-21 02:01:02 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2023-06-14 14:25:52 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-02-21 02:01:02 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-06-14 14:25:52 +04:00
|
|
|
|
[Column(title: "Магазин", width: 200)]
|
2023-02-21 02:01:02 +04:00
|
|
|
|
public string ShopName { get; set; } = string.Empty;
|
2023-06-14 14:25:52 +04:00
|
|
|
|
[Column(title: "Адрес", width: 100)]
|
2023-02-21 02:01:02 +04:00
|
|
|
|
public string Adress { get; set; } = string.Empty;
|
2023-06-14 14:25:52 +04:00
|
|
|
|
[Column(title: "Дата открытия", width: 100, format: "d")]
|
2023-02-21 02:01:02 +04:00
|
|
|
|
public DateTime OpeningDate { get; set; }
|
2023-06-14 14:25:52 +04:00
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
2023-02-21 02:01:02 +04:00
|
|
|
|
public Dictionary<int, (IPizzaModel, int)> ShopPizzas { get; set; } = new();
|
2023-06-14 14:25:52 +04:00
|
|
|
|
[Column(title: "Вместимость", width: 100)]
|
2023-03-22 22:07:34 +04:00
|
|
|
|
public int PizzaMaxCount { get; set; }
|
2023-02-21 02:01:02 +04:00
|
|
|
|
}
|
|
|
|
|
}
|