2024-06-17 10:16:39 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
|
|
|
|
using SushiBarDataModels.Models;
|
2024-02-05 16:26:35 +04:00
|
|
|
|
|
2024-02-05 16:40:47 +04:00
|
|
|
|
namespace SushiBarContracts.ViewModels
|
2024-02-05 16:26:35 +04:00
|
|
|
|
{
|
2024-02-09 17:38:25 +04:00
|
|
|
|
public class SushiViewModel : ISushiModel
|
2024-02-05 16:26:35 +04:00
|
|
|
|
{
|
2024-06-17 10:16:39 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(title: "Название Суши", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string SushiName { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Цена", width: 100)]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> SushiComponents
|
2024-02-05 16:26:35 +04:00
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|