Fixes - #1959
This commit is contained in:
parent
1807e952cf
commit
bc38b1854f
@ -14,20 +14,8 @@ public class CartController : Controller
|
||||
_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();
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
@using Microsoft.eShopOnContainers.WebMVC.Services
|
||||
@using Microsoft.eShopOnContainers.WebMVC.ViewModels
|
||||
|
||||
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.Basket
|
||||
@inject IIdentityParser<ApplicationUser> UserManager
|
||||
|
||||
@{
|
||||
|
Loading…
x
Reference in New Issue
Block a user