ISEbd-21.Gordeev.I.V.SushiB.../SushiBar/SushiBarContracts/ViewModels/IngredientViewModel.cs

17 lines
583 B
C#

using SushiBarContracts.Attributes;
using SushiBarDataModels.Models;
using System.ComponentModel;
namespace SushiBarContracts.ViewModels
{
public class IngredientViewModel : IIngredientModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название еды для изготовления", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string IngredientName { get; set; } = string.Empty;
[Column(title: "Цена", width: 150)]
public double Cost { get; set; }
}
}