This commit is contained in:
Ravi Vidap 2022-08-31 13:55:50 +05:30
parent 1807e952cf
commit bc38b1854f
2 changed files with 1 additions and 14 deletions

View File

@ -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();
}

View File

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