2023-04-07 10:55:40 +04:00
|
|
|
|
using CanteenDataModels.Enums;
|
|
|
|
|
using CanteenDataModels.Models;
|
2023-04-06 14:34:58 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace CanteenContracts.BindingModels
|
|
|
|
|
{
|
|
|
|
|
public class LunchBindingModel : ILunchModel
|
|
|
|
|
{
|
2023-04-07 10:55:40 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int VisitorId { get; set; }
|
2023-04-06 14:34:58 +04:00
|
|
|
|
public string LunchName { get; set; } = string.Empty;
|
2023-04-09 13:00:51 +04:00
|
|
|
|
public double Sum { get; set; } = 0;
|
|
|
|
|
public LunchStatus Status { get; set; } = LunchStatus.Создан;
|
2023-04-07 21:53:52 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
public Dictionary<int, (IProductModel, int)> LunchProducts { get; set; } = new Dictionary<int, (IProductModel, int)>();
|
2023-05-19 03:39:58 +04:00
|
|
|
|
public Dictionary<int, (IOrderModel, int)> LunchOrders { get; set; } = new Dictionary<int, (IOrderModel, int)>();
|
2023-04-06 14:34:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|