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

17 lines
583 B
C#
Raw Permalink Normal View History

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