You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
569 B
17 lines
569 B
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
|
|
|
namespace Microsoft.eShopWeb.Web.ViewModels;
|
|
|
|
public class OrderViewModel
|
|
{
|
|
private const string DEFAULT_STATUS = "Pending";
|
|
|
|
public int OrderNumber { get; set; }
|
|
public DateTimeOffset OrderDate { get; set; }
|
|
public decimal Total { get; set; }
|
|
public string Status => DEFAULT_STATUS;
|
|
public Address? ShippingAddress { get; set; }
|
|
public List<OrderItemViewModel> OrderItems { get; set; } = new List<OrderItemViewModel>();
|
|
}
|
|
|