PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/ViewModels/GiftViewModel.cs

20 lines
492 B
C#
Raw Normal View History

2024-02-06 12:37:25 +04:00
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();
}
}