ISEbd-21_Agliullov.D.A._Con.../ConfectioneryContracts/ViewModels/ShopViewModel.cs

31 lines
876 B
C#
Raw Normal View History

2023-02-05 15:14:18 +04:00
using ConfectioneryDataModels;
using ConfectioneryDataModels.Models;
using System.ComponentModel;
namespace ConfectioneryContracts.ViewModels
{
2023-02-05 15:14:18 +04:00
public class ShopViewModel : IShopModel
{
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 int MaxCountPastries { get; set; }
2023-02-05 15:14:18 +04:00
[DisplayName("Время открытия")]
public DateTime DateOpening { get; set; } = DateTime.Now;
public Dictionary<int, (IPastryModel, int)> Pastries
2023-02-05 15:14:18 +04:00
{
get;
set;
} = new();
public int Id { get; set; }
}
}