Пример #1
0
        public async Task <ActionResult> Delete(string id)
        {
            Dish dish = await DishService.GetDishByIdAsync(id);

            if (dish == null)
            {
                return(NotFound());
            }

            await DishService.DeleteDishByIdAsync(id);

            return(Ok(dish));
        }