Exemple #1
0
        //DELETE
        public async Task <int> DeleteDish(int id)
        {
            DishDAL DAL = new DishDAL(_context);

            return(await DAL.DeleteDish(id));
        }
Exemple #2
0
        //UPDATE
        public async Task <int> UpdateDish(Models.Dish restaurant)
        {
            DishDAL DAL = new DishDAL(_context);

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