ISEbd-21_Khaliullov_R.A._Co.../Canteen/CanteenContracts/ViewModels/DishViewModel.cs

21 lines
577 B
C#
Raw Permalink Normal View History

2024-04-30 18:48:42 +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.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();
}
}