PIbd-22_Bazunov_A.I._SushiBar/SushiBar/SushiBarContracts/ViewModels/SushiViewModel.cs

18 lines
474 B
C#
Raw Normal View History

2023-01-30 18:15:58 +04:00
using SushiBarDataModels.Models;
using System.ComponentModel;
namespace SushiBarContracts.ViewModels
{
2023-01-30 18:27:32 +04:00
public class SushiViewModel : ISushiModel
2023-01-30 18:15:58 +04:00
{
public int Id { get; set; }
[DisplayName("Name of Product")]
2023-01-30 18:27:32 +04:00
public string SushiName { get; set; } = string.Empty;
2023-01-30 18:15:58 +04:00
[DisplayName("Cost")]
public double Price { get; set; }
2023-01-30 18:27:32 +04:00
public Dictionary<int, (IComponentModel, int)> SushiComponents { get; set; } = new();
2023-01-30 18:15:58 +04:00
}
}