Files
eShopOnWeb/src/Web/ViewModels/OrderViewModel.cs
Steve Smith e7d71ea572 Separate OrderViewModel from OrderDetailsViewModel (#904)
* Separate OrderViewModel from OrderDetailsViewModel

* Update packages
2023-05-23 14:55:24 -04:00

15 lines
426 B
C#

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; }
}