2023-04-06 14:34:58 +04:00
|
|
|
|
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 DishViewModel : IDishModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2023-04-07 18:58:07 +04:00
|
|
|
|
public int ManagerId { get; set; }
|
2023-04-06 14:34:58 +04:00
|
|
|
|
[DisplayName("Название блюда")]
|
|
|
|
|
public string DishName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Цена")]
|
|
|
|
|
public double Cost { get; set; }
|
2023-04-07 18:58:07 +04:00
|
|
|
|
public Dictionary<int, (IProductModel, int)> DishProducts { get; set; } = new();
|
2023-04-06 14:34:58 +04:00
|
|
|
|
}
|
|
|
|
|
}
|