27 lines
816 B
C#
Raw Normal View History

2023-03-26 20:47:20 +04:00
using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class ShopViewModel
{
[DisplayName("Название магазина")]
public string Name { get; set; } = string.Empty;
[DisplayName("Адрес")]
public string Adress { get; set; } = string.Empty;
[DisplayName("Дата открытия")]
public DateTime OpeningDate { get; set; }
public Dictionary<int, (IComputerModel, int)> ShopComputers { get; set; } = new();
public int Id { get; set; }
2023-04-22 19:35:36 +04:00
[DisplayName("Вместимость")]
public int MaxCountComputers { get; set; }
2023-03-26 20:47:20 +04:00
}
}