22 lines
668 B
C#
Raw Normal View History

2023-05-14 07:44:14 +04:00
using PizzeriaContracts.Attributes;
using PizzeriaDataModels.Models;
2023-02-16 07:52:03 +03:00
using System.ComponentModel;
namespace PizzeriaContracts.ViewModels
{
public class PizzaViewModel : IPizzaModel
{
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-02-16 07:52:03 +03:00
public int Id { get; set; }
2023-05-14 07:44:14 +04:00
[Column(title: "Название пиццы", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-02-16 07:52:03 +03:00
public string PizzaName { get; set; } = string.Empty;
2023-05-14 07:44:14 +04:00
[Column(title: "Цена", width: 70)]
2023-02-16 07:52:03 +03:00
public double Price { get; set; }
2023-05-14 07:44:14 +04:00
[Column(visible: false)]
2023-02-16 07:52:03 +03:00
public Dictionary<int, (IComponentModel, int)> PizzaComponents { get;set;} = new();
}
}