public void DeleteBasketRecipeIngredient(int Id, Boolean visible)
        {
            var BasketRecipeIngredient = _dbContext.BasketRecipeIngredient.Find(Id);

            BasketRecipeIngredient.Visible = visible;
            _dbContext.Entry(BasketRecipeIngredient).State = EntityState.Modified;
            Save();
        }
Esempio n. 2
0
 public void UpdateRecipeIngredient(RecipeIngredient recipeIngredient)
 {
     _dbContext.Entry(recipeIngredient).State = EntityState.Modified;
     Save();
 }
 public void UpdateIngredient(Ingredient ingredient)
 {
     _dbContext.Entry(ingredient).State = EntityState.Modified;
     Save();
 }
Esempio n. 4
0
 public void UpdateUser(User user)
 {
     _dbContext.Entry(user).State = EntityState.Modified;
     Save();
 }
Esempio n. 5
0
 public void UpdateRecipeInstruction(RecipeInstruction RecipeInstruction)
 {
     _dbContext.Entry(RecipeInstruction).State = EntityState.Modified;
     Save();
 }
Esempio n. 6
0
 public void UpdateBasket(Basket Basket)
 {
     _dbContext.Entry(Basket).State = EntityState.Modified;
     Save();
 }
Esempio n. 7
0
 public void UpdateRecipe(Recipe recipe)
 {
     _dbContext.Entry(recipe).State = EntityState.Modified;
     Save();
 }
Esempio n. 8
0
 public void UpdateMeasure(Measure measure)
 {
     _dbContext.Entry(measure).State = EntityState.Modified;
     Save();
 }