2023-02-05 15:14:18 +04:00
|
|
|
|
using ConfectioneryDataModels;
|
|
|
|
|
using ConfectioneryDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2023-02-05 14:44:03 +04:00
|
|
|
|
|
|
|
|
|
namespace ConfectioneryContracts.ViewModels
|
|
|
|
|
{
|
2023-02-05 15:14:18 +04:00
|
|
|
|
public class ShopViewModel : IShopModel
|
2023-02-05 14:44:03 +04:00
|
|
|
|
{
|
2023-02-05 15:14:18 +04:00
|
|
|
|
[DisplayName("Название магазина")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Адрес магазина")]
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Время открытия")]
|
|
|
|
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
|
|
|
|
|
2023-02-05 15:15:38 +04:00
|
|
|
|
public Dictionary<int, (IPastryModel, int)> Pastries
|
2023-02-05 15:14:18 +04:00
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
|
|
|
|
|
public int Id { get; set; }
|
2023-02-05 14:44:03 +04:00
|
|
|
|
}
|
|
|
|
|
}
|