// GET: /<controller>/ public IActionResult averageStock() { ViewData["average"] = StockList.GetAverageStock(Inventory); return(View()); }