@model Bookstore.Web.ViewModel.ShoppingCart.ShoppingCartIndexViewModel @{ ViewData["Title"] = "Index"; }

Cart

  • Cart
  • Choose Address
  • Finish



Total price:@Model.TotalPrice.ToString("C")


@if (!User.Identity.IsAuthenticated) {

Please log in to complete your order.

Log In } else { Check Out } @foreach (var item in Model.ShoppingCartItems) { }
@item.BookName @if (item.StockLevel <= 5) {

@(item.StockLevel <= 0 ? "Out of stock" : $"Hurry, only {item.StockLevel} left!")

}
@item.Price.ToString("C")

@section Scripts { }