Coursework_ComputerStore_Li.../ComputerStoreContracts/ViewModels/OrderViewModel.cs

33 lines
1.0 KiB
C#
Raw Normal View History

using ComputerStoreDataModels.Enums;
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 OrderViewModel : IOrderModel
{
[DisplayName("Order ID")]
public int ID { get; set; }
[DisplayName("Price")]
public double Price { get; set; }
[DisplayName("Status")]
public OrderStatus Status { get; set; }
2023-04-07 20:46:13 +04:00
[DisplayName("Creation date")]
public DateTime DateCreate { get; set; }
[DisplayName("Implementation date")]
public DateTime? DateImplement { get; set; }
2023-04-07 20:46:13 +04:00
2023-04-05 22:11:17 +04:00
public int SellerID { get; set; }
2023-04-07 20:46:13 +04:00
[DisplayName("SellerUsername")]
public string? SellerUsername { get; set; } = string.Empty;
public List<IConsignmentModel> OrderConsignments { get; set; } = new();
public List<IRequestModel> OrderRequests { get; set; } = new();
}
}