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

            return _nutritionRecipeRepository.Add(recipe);
        }