public async Task <IActionResult> Beverages(string storeCitySearchString) { List <Store> stores = await beerData.FindStoresAndAgentsByCity(storeCitySearchString); List <Beverage> beverages = new List <Beverage>(); if (stores == null) { //If no store is selected then it shows all beverages in the list beverages = await beerData.RetrieveBeveragesList(); } else { //Goes through all the stores in specified town to retrieve the list beverages.AddRange(beerData.RetrieveBeveragesInStores(stores)); } return(View(new BeverageSearchViewModel { Beverages = beverages })); }