PIbd-23_Bogdanov_D.S._Compu.../ComputerShopContracts/ViewModels/ComputerViewModel.cs

25 lines
668 B
C#

using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.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();
}
}