21 lines
577 B
C#
21 lines
577 B
C#
|
using CanteenDataModels.Models;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace CanteenContracts.ViewModels
|
|||
|
{
|
|||
|
public class DishViewModel : IDishModel
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
[DisplayName("Название ингредиента")]
|
|||
|
public string DishName { get; set; } = string.Empty;
|
|||
|
[DisplayName("Цена")]
|
|||
|
public double DishPrice { get; set; }
|
|||
|
public Dictionary<int, (IIngredientModel, int)> DishIngredients { get; set; } = new();
|
|||
|
}
|
|||
|
}
|