PIbd-22_Katysheva_N.E._Pizz.../Pizzeria/PizzeriaContracts/ViewModels/PizzaViewModel.cs

19 lines
488 B
C#
Raw Normal View History

2024-03-11 00:29:35 +04:00
using PizzeriaDataModels.Models;
using System.ComponentModel;
namespace PizzeriaContracts.ViewModels
{
public class PizzaViewModel : IPizzaModel
{
public int Id { get; set; }
[DisplayName("Название пиццы")]
public string PizzaName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> PizzaComponents {get;set;} = new();
}
}