diff --git a/src/Web/WebMVC/Controllers/CartController.cs b/src/Web/WebMVC/Controllers/CartController.cs index fc506ec43..443ad4d2b 100644 --- a/src/Web/WebMVC/Controllers/CartController.cs +++ b/src/Web/WebMVC/Controllers/CartController.cs @@ -14,20 +14,8 @@ public class CartController : Controller _appUserParser = appUserParser; } - public async Task Index() + public IActionResult Index() { - try - { - var user = _appUserParser.Parse(HttpContext.User); - var vm = await _basketSvc.GetBasket(user); - - return View(vm); - } - catch (Exception ex) - { - HandleException(ex); - } - return View(); } diff --git a/src/Web/WebMVC/Views/Cart/Index.cshtml b/src/Web/WebMVC/Views/Cart/Index.cshtml index 398a66181..dcb5418a0 100644 --- a/src/Web/WebMVC/Views/Cart/Index.cshtml +++ b/src/Web/WebMVC/Views/Cart/Index.cshtml @@ -1,7 +1,6 @@ @using Microsoft.eShopOnContainers.WebMVC.Services @using Microsoft.eShopOnContainers.WebMVC.ViewModels -@model Microsoft.eShopOnContainers.WebMVC.ViewModels.Basket @inject IIdentityParser UserManager @{