Coursework_ComputerStore_Li.../ComputerStoreContracts/ViewModels/RequestViewModel.cs

29 lines
762 B
C#
Raw Normal View History

2023-04-05 22:11:17 +04:00
using ComputerStoreDataModels.Models;
using System;
using System.Collections.Generic;
2023-04-05 22:11:17 +04:00
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerStoreContracts.ViewModels
{
2023-04-05 22:11:17 +04:00
public class RequestViewModel : IRequestModel
{
2023-04-05 22:11:17 +04:00
[DisplayName("Request ID")]
public int ID { get; set; }
[DisplayName("Order ID")]
2023-05-20 05:52:38 +04:00
public int? OrderID { get; set; }
2023-04-05 22:11:17 +04:00
[DisplayName("Price")]
public double Price { get; set; }
2023-04-07 20:46:13 +04:00
[DisplayName("PC ID")]
2023-04-09 01:07:38 +04:00
public int? PCID { get; set; }
[DisplayName("PC's name")]
2023-05-17 17:57:25 +04:00
public string? PCName { get; set; } = string.Empty;
2023-05-19 16:11:31 +04:00
public List<(IComponentModel, int)> RequestComponents { get; set; } = new();
}
}