コード例 #1
0
        public ActionResult GetAllRestaurants()
        {
            List <Restaurants> restaurants = new List <Restaurants>();

            restaurants = restauntRepository.GetAllRestaurant();
            if (restaurants != null)
            {
                return(View(restaurants));
            }
            return(View());
        }