SUBD/Sushi/SushiContracts/ViewModels/SushiViewModel.cs

16 lines
475 B
C#

using SushiDataModels;
using System.ComponentModel;
namespace SushiContracts.ViewModels
{
public class SushiViewModel : ISushiModel
{
public int Id { get; set; }
[DisplayName("Название блюда")]
public string SushiName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> SushiComponents { get; set; } = new();
}
}