PIbd-22_Karamushko_M_K_Pizz.../Pizzeria/PizzeriaContracts/ViewModels/PizzaViewModel.cs

27 lines
643 B
C#
Raw Normal View History

2023-02-13 20:43:19 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using PizzeriaDataModels;
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();
}
}