PIbd-23_Bogdanov_D.S._Compu.../ComputerShopContracts/ViewModels/ShopViewModel.cs

25 lines
717 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; }
}
}