2023-05-02 18:16:03 +04:00
|
|
|
|
using SushiBarContracts.Attributes;
|
|
|
|
|
using SushiBarDataModels.Models;
|
2023-01-31 15:23:18 +04:00
|
|
|
|
|
|
|
|
|
namespace SushiBarContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class IngredientViewModel : IIngredientModel
|
|
|
|
|
{
|
2023-05-02 18:16:03 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-05-02 18:16:03 +04:00
|
|
|
|
[Column(title: "Ингредиент", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public string IngredientName { get; set; } = string.Empty;
|
2023-05-02 21:20:10 +04:00
|
|
|
|
[Column(title: "Цена", width: 150, format: "c2")]
|
2023-01-31 15:23:18 +04:00
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|