PIbd-21_Raspaev_N.I._FoodOr.../FoodOrders/FoodOrdersContracts/ViewModels/OrderViewModel.cs

32 lines
942 B
C#
Raw Normal View History

2023-02-07 13:00:02 +04:00
using FoodOrdersDataModels.Enums;
using FoodOrdersDataModels.Models;
using System.ComponentModel;
namespace FoodOrdersContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
[DisplayName("Номер")]
public int Id { get; set; }
2023-02-12 10:11:34 +04:00
public int DishId { get; set; }
2023-02-07 13:00:02 +04:00
2023-02-12 15:31:20 +04:00
[DisplayName("Набор")]
2023-02-12 10:11:34 +04:00
public string DishName { get; set; } = string.Empty;
2023-02-07 13:00:02 +04:00
[DisplayName("Количество")]
public int Count { get; set; }
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
}