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