24 lines
536 B
C#
24 lines
536 B
C#
using System.ComponentModel;
|
|
using SushiBarDataModels.Models;
|
|
|
|
namespace SushiBarContracts.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();
|
|
}
|
|
}
|