diff --git a/SportsStore/SportsStore.WebUI/Views/Shared/ProductSummary.cshtml b/SportsStore/SportsStore.WebUI/Views/Shared/ProductSummary.cshtml index 2eb255e..7b94b01 100644 --- a/SportsStore/SportsStore.WebUI/Views/Shared/ProductSummary.cshtml +++ b/SportsStore/SportsStore.WebUI/Views/Shared/ProductSummary.cshtml @@ -5,5 +5,14 @@ @Model.Name @Model.Price.ToString("c") + + @using (Html.BeginForm("AddToCart", "Cart")) + { +
+ @Html.HiddenFor(x => x.ProductID) + @Html.Hidden("returnUrl", Request.Url.PathAndQuery) + +
+ } @Model.Description