Esempio n. 1
0
        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());
                }
            }
        }
Esempio n. 2
0
 // GET: RestaurantController
 public ActionResult Index()
 {
     return(View(_restaurantBL.GetAllRestaurants()));
 }