PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenContracts/BindingModels/LunchBindingModel.cs
2023-05-19 03:39:58 +04:00

24 lines
919 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CanteenDataModels.Enums;
using CanteenDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CanteenContracts.BindingModels
{
public class LunchBindingModel : ILunchModel
{
public int Id { get; set; }
public int VisitorId { get; set; }
public string LunchName { get; set; } = string.Empty;
public double Sum { get; set; } = 0;
public LunchStatus Status { get; set; } = LunchStatus.Создан;
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)>();
public Dictionary<int, (IOrderModel, int)> LunchOrders { get; set; } = new Dictionary<int, (IOrderModel, int)>();
}
}