Browse Source

Fixes - #1959

pull/1962/head
Ravi Vidap 2 years ago
parent
commit
bc38b1854f
2 changed files with 1 additions and 14 deletions
  1. +1
    -13
      src/Web/WebMVC/Controllers/CartController.cs
  2. +0
    -1
      src/Web/WebMVC/Views/Cart/Index.cshtml

+ 1
- 13
src/Web/WebMVC/Controllers/CartController.cs View File

@ -14,20 +14,8 @@ public class CartController : Controller
_appUserParser = appUserParser; _appUserParser = appUserParser;
} }
public async Task<IActionResult> 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(); return View();
} }


+ 0
- 1
src/Web/WebMVC/Views/Cart/Index.cshtml View File

@ -1,7 +1,6 @@
@using Microsoft.eShopOnContainers.WebMVC.Services @using Microsoft.eShopOnContainers.WebMVC.Services
@using Microsoft.eShopOnContainers.WebMVC.ViewModels @using Microsoft.eShopOnContainers.WebMVC.ViewModels
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.Basket
@inject IIdentityParser<ApplicationUser> UserManager @inject IIdentityParser<ApplicationUser> UserManager
@{ @{


Loading…
Cancel
Save