@page @model CheckoutModel @{ ViewData["Title"] = "Checkout"; }

Review

@if (Model.BasketModel.Items.Any()) {

Product
Price
Quantity
Cost
@for (int i = 0; i < Model.BasketModel.Items.Count; i++) { var item = Model.BasketModel.Items[i];
@item.ProductName
$ @item.UnitPrice.ToString("N2")
@item.Quantity
$ @Math.Round(item.Quantity * item.UnitPrice, 2).ToString("N2")
}
Total
$ @Model.BasketModel.Total().ToString("N2")
} else {

Basket is empty.

[ Continue Shopping..]
}