16 lines
516 B
C#
16 lines
516 B
C#
using ComputersShopDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputersShopContracts.ViewModels
|
|
{
|
|
public class ComputerViewModel : IComputerModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название изделия")]
|
|
public string ComputerName { get; set; } = string.Empty;
|
|
[DisplayName("Цена")]
|
|
public double Price { get; set; }
|
|
public Dictionary<int, (IComponentModel, int)> ComputerComponents { get; set; } = new();
|
|
}
|
|
}
|