2024-04-14 02:36:43 +04:00
|
|
|
|
using CarRepairShopDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace CarRepairShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ShopViewModel : IShopModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Название магазина")]
|
|
|
|
|
public string ShopName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Адрес")]
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата открытия")]
|
|
|
|
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
public Dictionary<int, (IRepairModel, int)> ShopRepairs
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
2024-04-27 22:23:26 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Максимальное количество ремонтов")]
|
|
|
|
|
public int RepairMaxAmount { get; set; }
|
2024-04-14 02:36:43 +04:00
|
|
|
|
}
|
|
|
|
|
}
|