ISEbd-22_Baygulov_A.A._Sush.../SushiBar/SushiBarContracts/ViewModels/SushiViewModel.cs

30 lines
823 B
C#
Raw Normal View History

2024-06-01 17:37:58 +04:00
using SushiBarContracts.Attributes;
using SushiBarDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarContracts.ViewModels
{
public class SushiViewModel : ISushiModel
{
2024-06-01 17:37:58 +04:00
[Column(visible: false)]
public int Id { get; set; }
2024-06-01 17:37:58 +04:00
[Column(title: "Название сущи", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string SushiName { get; set; } = string.Empty;
2024-06-01 17:37:58 +04:00
[Column(title: "Цена", width: 70)]
public double Price { get; set; }
2024-06-01 17:37:58 +04:00
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> SushiComponents
{
get;
set;
} = new();
2024-06-01 17:37:58 +04:00
}
}
2024-06-01 17:37:58 +04:00