// Load Index page and pass in the top five restaurant data from Restaurants.cs public IActionResult Index() { List <string> restList = new List <string>(); foreach (Restaurants r in Restaurants.GetRests()) { restList.Add($"#{r.RestRank} {r.RestName} {r.FavDish} at {r.Address}, {r.PhoneNum}, {r.WebLink}"); } return(View(restList)); }