2023-01-29 22:09:46 +04:00
|
|
|
|
using AbstractIceCreamShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.ViewModels
|
|
|
|
|
{
|
2023-01-30 11:43:43 +04:00
|
|
|
|
public class IceCreamViewModel : IIceCreamModel
|
2023-01-29 22:09:46 +04:00
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2023-01-31 10:40:59 +04:00
|
|
|
|
[DisplayName("Название мороженого")]
|
2023-01-30 11:43:43 +04:00
|
|
|
|
public string IceCreamName { get; set; } = string.Empty;
|
2023-01-29 22:09:46 +04:00
|
|
|
|
[DisplayName("Цена")]
|
|
|
|
|
public double Price { get; set; }
|
2023-01-30 11:43:43 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> IceCreamComponents { get; set; } = new();
|
2023-01-29 22:09:46 +04:00
|
|
|
|
}
|
|
|
|
|
}
|