PIbd-23_Sergunov_M.A._GiftShop/GiftShop/GiftShopContracts/ViewModels/GiftViewModel.cs

20 lines
492 B
C#

using GiftShopDataModels.Models;
using System.ComponentModel;
namespace GiftShopContracts.ViewModels
{
public class GiftViewModel : IGiftModel
{
public int Id { get; set; }
[DisplayName("Название изделия")]
public string GiftName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> GiftComponents { get; set; } = new();
}
}