2023-03-12 01:50:01 +04:00
|
|
|
|
using FlowerShopDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ShopViewModel : IShopModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Название магазина")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Адрес")]
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата открытия")]
|
|
|
|
|
public DateTime OpeningDate { get; set; }
|
|
|
|
|
|
|
|
|
|
public Dictionary<int, (IBouquetModel, int)> ShopBouquets { get; set; } = new();
|
2023-03-26 01:51:51 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Макс. букетов в магазине")]
|
|
|
|
|
public int MaxCountBouquets { get; set; }
|
2023-03-12 01:50:01 +04:00
|
|
|
|
}
|
|
|
|
|
}
|