From bc38b1854f01b71a65d7c49016272320504a64cc Mon Sep 17 00:00:00 2001 From: Ravi Vidap Date: Wed, 31 Aug 2022 13:55:50 +0530 Subject: [PATCH] Fixes - #1959 --- src/Web/WebMVC/Controllers/CartController.cs | 14 +------------- src/Web/WebMVC/Views/Cart/Index.cshtml | 1 - 2 files changed, 1 insertion(+), 14 deletions(-) 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 @{