@model IEnumerable @{ ViewData["Title"] = "Mis Pedidos"; }

Mis Pedidos

@if (!Model.Any()) {

Aún no has realizado ningún pedido.

} else {
@foreach (var order in Model) {
Pedido #@order.Id

Fecha: @order.OrderDate.ToString("g")

Total: @order.TotalAmount.ToString("0.00") €

Estado: @order.Status

Envío:
@order.ShippingAddress

}
}