@model SportsStore.WebUI.Models.CartIndexViewModel @{ ViewBag.Title = "Sports Store: Your Cart"; }
Quantity | Item | Price | Subtotal | |
---|---|---|---|---|
@line.Quantity | @line.Product.Name | @line.Product.Price.ToString("c") | @((line.Quantity * line.Product.Price).ToString("c")) | @using (Html.BeginForm("RemoveFromCart", "cart")) { @Html.Hidden("ProductId", line.Product.ProductID) @Html.HiddenFor(x => x.ReturnUrl) } |
Total: | @Model.Cart.ComputeTotalValue().ToString("c") |