private void ViewRestaurants() { //TODO: Remove the hardcoded restaurant and refer to a stored restaurant that exists List <Restaurant> restaurants = _restaurantBL.GetAllRestaurants(); if (restaurants.Count == 0) { Console.WriteLine("No restaurants :<"); } else { foreach (Restaurant restaurant in restaurants) { Console.WriteLine(restaurant.ToString()); } } }
// GET: RestaurantController public ActionResult Index() { return(View(_restaurantBL.GetAllRestaurants())); }