2024-05-24 01:56:34 +04:00
|
|
|
|
using SushiBarDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2024-05-15 21:14:04 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
2024-05-24 01:56:34 +04:00
|
|
|
|
public class DishViewModel : IDishModel
|
2024-05-15 21:14:04 +04:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Название блюда")]
|
|
|
|
|
public string DishName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Категория")]
|
|
|
|
|
public string Category { get; set; } = string.Empty;
|
|
|
|
|
|
2024-05-24 01:56:34 +04:00
|
|
|
|
[DisplayName("Стоимость")]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
|
|
|
|
public Dictionary<int, (IIngredientModel, int)> DishIngredients { get; set; } = new();
|
2024-05-15 21:14:04 +04:00
|
|
|
|
}
|
|
|
|
|
}
|