Computer_Hardware_Store/HardwareShop/HardwareShopContracts/ViewModels/GoodViewModel.cs

21 lines
555 B
C#
Raw Normal View History

using HardwareShopDataModels.Models;
using System.ComponentModel;
namespace HardwareShopContracts.ViewModels
{
public class GoodViewModel : IGoodModel
{
public int Id { get; set; }
[DisplayName("Товар")]
public string GoodName { get; set; } = string.Empty;
[DisplayName("Цена")]
public double Price { get; set; }
public int UserId { get; set; }
2023-04-04 02:09:53 +04:00
public Dictionary<int, (IComponentModel, int)> GoodComponents
{
get;
set;
} = new();
}
}