2023-02-07 13:00:02 +04:00
|
|
|
|
using FoodOrdersDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2023-02-12 10:11:34 +04:00
|
|
|
|
|
2023-02-07 13:00:02 +04:00
|
|
|
|
namespace FoodOrdersContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class DishViewModel : IDishModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2023-03-10 16:29:13 +04:00
|
|
|
|
[DisplayName("Название блюда")]
|
2023-02-07 13:00:02 +04:00
|
|
|
|
public string DishName { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Цена")]
|
2023-02-12 10:11:34 +04:00
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> DishComponents {get; set;} = new();
|
2023-02-07 13:00:02 +04:00
|
|
|
|
}
|
|
|
|
|
}
|