ComputerHardwareStore_YouAr.../ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/BuildViewModel.cs

18 lines
637 B
C#
Raw Permalink Normal View History

2024-04-18 15:03:40 +04:00
using ComputerHardwareStoreDataModels.Models;
using System.ComponentModel;
namespace ComputerHardwareStoreContracts.ViewModels
{
public class BuildViewModel : IBuildModel
2024-04-18 15:03:40 +04:00
{
public int Id { get; set; }
[DisplayName("Название сборки")]
2024-04-30 18:59:45 +04:00
public string Name { get; set; } = string.Empty;
2024-04-18 15:03:40 +04:00
[DisplayName("Стоимость")]
2024-04-30 18:59:45 +04:00
public double Price { get; set; }
2024-04-30 19:43:16 +04:00
public IVendorModel Vendor { get; set; }
2024-04-30 18:59:45 +04:00
public Dictionary<int, (IComponentModel, int)> BuildComponents { get; set; } = new();
public List<ICommentModel> Comments { get; set; } = new();
2024-04-18 15:03:40 +04:00
}
}