2024-02-18 12:22:10 +04:00
|
|
|
|
using ComputersShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputersShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ShopViewModel : IShopModel
|
|
|
|
|
{
|
|
|
|
|
public Dictionary<int, (IComputerModel, int)> Computers { get; set; } = new();
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Название магазина")]
|
|
|
|
|
public string ShopName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Адрес магазина")]
|
|
|
|
|
public string ShopAddress { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Дата открытия")]
|
|
|
|
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
2024-03-18 20:59:24 +04:00
|
|
|
|
[DisplayName("Вместимость магазина")]
|
|
|
|
|
public int Capacity { get; set; }
|
2024-02-18 12:22:10 +04:00
|
|
|
|
}
|
2024-03-18 20:59:24 +04:00
|
|
|
|
}
|