public async Task <IActionResult> Index() { var products = await ProductEndpoints.GetProducts(); var currentUser = await _userManager.GetUserAsync(User); return(View(new ProductsUser() { Products = products, CurrentUser = currentUser })); }
public void GetAll() { var products = ProductEndpoints.GetProducts().Result; Assert.IsTrue(products != null); }