示例#1
0
        public IActionResult Update([FromBody] RecipeIngredient recipeIngredient, [FromRoute] int id)
        {
            try
            {
                RecipeIngredientCore recipeIngredientCore = new RecipeIngredientCore(dbContext);

                recipeIngredientCore.Update(recipeIngredient, id);

                return(Ok("recipeIngredient Word Updated Succesfully"));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, ex));
            }
        }