using CanteenDataModels.Enums; using CanteenDataModels.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CanteenContracts.ViewModels { public class OrderViewModel : IOrderModel { [DisplayName("Номер")] public int Id { get; set; } public int ClientId { get; set; } [DisplayName("ФИО Клиента")] public string ClientFIO { get; set; } = string.Empty; public int? CookId { get; set; } [DisplayName("ФИО повара")] public string? CookFIO { get; set; } = string.Empty; public int DishId { get; set; } [DisplayName("Блюдо")] public string DishName { get; set; } = string.Empty; [DisplayName("Количество блюд")] public int DishCount { get; set; } [DisplayName("Цена заказа")] public double OrderPrice { get; set; } [DisplayName("Статус заказа")] public OrderStatus OrderStatus { get; set; } = OrderStatus.Неизвестен; [DisplayName("Статус оплаты")] public PaymentStatus PaymentStatus { get; set; } = PaymentStatus.Неизвестно; [DisplayName("Дата создания")] public DateTime DateCreate { get; set; } = DateTime.Now; [DisplayName("Дата выполнения")] public DateTime? DateImplement { get; set; } } }