SushiBarBase/SushiBar/SushiBarContracts/ViewModels/SushiViewModel.cs

21 lines
527 B
C#
Raw Permalink Normal View History

using SushiBarDataModels.Models;
using System.ComponentModel;
namespace SushiBarContracts.ViewModels
{
2024-02-09 17:38:25 +04:00
public class SushiViewModel : ISushiModel
{
public int Id { get; set; }
2024-02-09 17:38:25 +04:00
[DisplayName("Название суши")]
public string SushiName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
2024-02-09 17:38:25 +04:00
public Dictionary<int, (IComponentModel, int)> SushiComponents
{
get;
set;
} = new();
}
}