@model SportsStore.WebUI.Models.CartIndexViewModel @{ ViewBag.Title = "Sports Store: Your Cart"; } @*Add style tag of cart table*@

Your cart

@*Add id*@ @foreach (var line in Model.Cart.Lines) { @*Add button*@ }
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")
Continue shopping @Html.ActionLink("Checkout now", "Checkout", null, new { @class = "btn btn-primary" })