PIbd-21_Balberova_D.N._Sush.../SushiBar/SushiBarContracts/ViewModels/SushiViewModel.cs

22 lines
690 B
C#
Raw Normal View History

2023-05-02 18:16:03 +04:00
using SushiBarContracts.Attributes;
using SushiBarDataModels.Models;
2023-01-31 15:23:18 +04:00
using System.ComponentModel;
namespace SushiBarContracts.ViewModels
{
public class SushiViewModel : ISushiModel
{
2023-05-02 18:16:03 +04:00
[Column(visible: false)]
2023-01-31 15:23:18 +04:00
public int Id { get; set; }
2023-05-02 18:16:03 +04:00
[Column(title: "Суши", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-01-31 15:23:18 +04:00
public string SushiName { get; set; } = string.Empty;
2023-05-02 18:16:03 +04:00
[Column(title: "Цена", width: 150)]
2023-01-31 15:23:18 +04:00
public double Price { get; set; }
2023-05-02 18:16:03 +04:00
[Column(visible: false)]
2023-01-31 15:23:18 +04:00
public Dictionary<int, (IIngredientModel, int)> SushiIngredients
{
get;
set;
} = new();
}
}