2023-03-12 18:36:23 +04:00
|
|
|
|
using AutomobilePlantDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AutomobilePlantContracts.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;
|
|
|
|
|
|
2023-03-25 22:45:18 +04:00
|
|
|
|
[DisplayName("Дата открытия")]
|
|
|
|
|
public DateTime OpeningDate { get; set; }
|
2023-03-12 18:36:23 +04:00
|
|
|
|
|
|
|
|
|
public Dictionary<int, (ICarModel, int)> ShopCars { get; set; } = new();
|
2023-04-10 05:44:53 +04:00
|
|
|
|
public List<Tuple<string, int>>? CarCount { get; set; } = new();
|
2023-03-26 02:47:18 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Макс. автомобилей в магазине")]
|
|
|
|
|
public int MaxCountCars { get; set; }
|
2023-03-12 18:36:23 +04:00
|
|
|
|
}
|
|
|
|
|
}
|