PIbd21_Makarov_DV_FlowerShop/FlowerShop/FlowerShopContracts/ViewModels/ShopViewModel.cs

25 lines
888 B
C#
Raw Normal View History

2024-04-04 00:29:16 +04:00
using FlowerShopDataModels.Models;
using System.ComponentModel;
namespace FlowerShopContracts.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;
2024-04-19 02:23:50 +04:00
public Dictionary<int, (IFlowerModel, int)> ShopFlowers
2024-04-04 00:29:16 +04:00
{
get;
set;
} = new();
2024-04-19 02:23:50 +04:00
[DisplayName("Максимальное количество цветков")]
public int MaximumFlowers { get; set; }
2024-05-17 02:35:47 +04:00
public Dictionary<int, ShopFlowerViewModel> ViewFlowers { get; set; } = new();
2024-04-19 02:23:50 +04:00
}
2024-04-04 00:29:16 +04:00
}