public void UpdateRecipe(NutritionRecipe recipe, int id) { if (id != 0) { recipe.Id = id; _nutritionRecipeRepository.Update(recipe, id); } }
public NutritionRecipe AddRecipe(NutritionRecipe recipe) { if (recipe == null) { return null; } return _nutritionRecipeRepository.Add(recipe); }