SUBD_PIbd-21_Balberova_D.N./BeautySaloon/BeautySaloonContracts/ViewModels/OrderViewModel.cs

23 lines
822 B
C#
Raw Normal View History

using BeautySaloonDataModels;
using System.ComponentModel;
namespace BeautySaloonContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[DisplayName("Номер")]
public int Id { get; set; }
[DisplayName("Дата заказа")]
public DateTime Date { get; set; } = DateTime.Now;
[DisplayName("Сумма")]
public double Sum { get; set; }
public int ClientId { get; set; }
[DisplayName("Клиент")]
public string ClientName { get; set; } = string.Empty;
public int EmployeeId { get; set; }
[DisplayName("Продавец")]
public string EmployeeName { get; set; } = string.Empty;
public Dictionary<DateTime, (IServiceModel, IEmployeeModel)> OrderServices { get; set; } = new();
}
}