17 lines
543 B
C#
17 lines
543 B
C#
using ComputerHardwareStoreDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace ComputerHardwareStoreContracts.ViewModels
|
|
{
|
|
public class BuildViewModel : IBuildModel
|
|
{
|
|
public int Id { get; set; }
|
|
[DisplayName("Название сборки")]
|
|
public string Name { get; } = string.Empty;
|
|
[DisplayName("Стоимость")]
|
|
public double Price { get; }
|
|
public int VendorId { get; }
|
|
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; } = new();
|
|
}
|
|
}
|