자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public JsonResult InsertIngredient(IngredientDto ingredient) { if (!string.IsNullOrEmpty(ingredient.Name)) { int recipeID = Convert.ToInt32(Session["RecipeID"]); ingredient.RecipeId = recipeID; ingredient.Id = _ingredientRepository.AddNewIngredient(ingredient); return(Json(ingredient)); } return(null); }