2023-04-05 19:26:00 +04:00
|
|
|
|
using ComputerStoreDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputerStoreContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class PCViewModel : IPCModel
|
|
|
|
|
{
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("PC's name")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("PC's price")]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
2023-04-06 17:00:40 +04:00
|
|
|
|
[DisplayName("Employee ID")]
|
|
|
|
|
public int EmployeeID { get; set; }
|
|
|
|
|
|
2023-04-05 21:23:13 +04:00
|
|
|
|
[DisplayName("Request ID")]
|
|
|
|
|
public int RequestID { get; set; }
|
2023-04-05 19:26:00 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> PCComponents { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|