PIbd-23-Salin-O.A.-IceCream.../IceCreamShop/IceCreamShopContracts/ViewModels/ShopViewModel.cs

25 lines
808 B
C#
Raw Permalink Normal View History

2024-02-07 16:24:04 +04:00
using IceCreamShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IceCreamShopContracts.ViewModels
{
public class ShopViewModel : IShopModel
{
public int Id { get; set; }
[DisplayName("Название магазина")]
public string ShopName { get; set; }
[DisplayName("Адрес магазина")]
public string Address { get; set; }
[DisplayName("Дата открытия")]
public DateTime DateOpen { get; set; }
2024-03-04 15:28:55 +04:00
[DisplayName("Вместимость")]
public int MaxCapacity { get; set; }
2024-02-07 16:24:04 +04:00
public Dictionary<int, (IIceCreamModel, int)> ShopIceCreams { get; set; } = new();
}
}