public ActionResult DeleteRecipe(int id) { Recipe recipe = dao.GetRecipeById(id); if (recipe == null) { return(NotFound()); } dao.DeleteRecipe(recipe); return(NoContent()); }