public async Task <IHttpActionResult> Delete(Dish dish) { try { var comment = _repo.GetDishAsync(dish.DishName); if (comment == null) { return(NotFound()); } _repo.DeleteDish(dish); if (await _repo.SaveChangesAsync()) { return(Ok()); } else { return(InternalServerError()); } } catch (Exception ex) { return(InternalServerError(ex)); } }