PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenContracts/ViewModels/OrderViewModel.cs

27 lines
898 B
C#
Raw Normal View History

2023-04-06 14:34:58 +04:00
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.View
{
public class OrderViewModel : IOrderModel
{
2023-04-07 21:53:52 +04:00
[DisplayName("ID посетителя")]
2023-04-07 18:58:07 +04:00
public int VisitorId { get; set; }
2023-04-07 21:53:52 +04:00
[DisplayName("Описание")]
2023-04-07 18:58:07 +04:00
public string Description { get; set; } = string.Empty;
2023-04-06 14:34:58 +04:00
[DisplayName("Сумма")]
2023-04-07 21:53:52 +04:00
public double? Sum { get; set; }
2023-05-19 03:39:58 +04:00
public Dictionary<int, ICookModel> OrderCooks { get; set; } = new Dictionary<int, ICookModel>();
public Dictionary<int, (ITablewareModel, int)> OrderTablewares { get; set; } = new Dictionary<int, (ITablewareModel, int)>();
2023-04-07 23:35:33 +04:00
[DisplayName("ID заказа")]
2023-04-07 21:53:52 +04:00
public int Id { get; set; }
2023-04-06 14:34:58 +04:00
}
2023-04-07 21:53:52 +04:00
2023-04-06 14:34:58 +04:00
}