public async System.Threading.Tasks.Task <IViewComponentResult> InvokeAsync() { var stocks = await _manager.GetLowInventoryAsync(); return(View("Default", stocks)); }
public async Task <IActionResult> LowInventory() { var stocks = await _manager.GetLowInventoryAsync(); return(View(stocks)); }