예제 #1
0
        //DELETE
        public async Task <int> DeleteRestaurant(int id)
        {
            RestaurantDAL DAL = new RestaurantDAL(_context);

            return(await DAL.DeleteRestaurant(id));
        }
예제 #2
0
        //UPDATE
        public async Task <int> UpdateRestaurant(Models.Restaurant restaurant)
        {
            RestaurantDAL DAL = new RestaurantDAL(_context);

            return(await DAL.UpdateRestaurant(restaurant));
        }