public void DeleteBasketRecipeIngredient(int Id, Boolean visible) { var BasketRecipeIngredient = _dbContext.BasketRecipeIngredient.Find(Id); BasketRecipeIngredient.Visible = visible; _dbContext.Entry(BasketRecipeIngredient).State = EntityState.Modified; Save(); }
public void UpdateRecipeIngredient(RecipeIngredient recipeIngredient) { _dbContext.Entry(recipeIngredient).State = EntityState.Modified; Save(); }
public void UpdateIngredient(Ingredient ingredient) { _dbContext.Entry(ingredient).State = EntityState.Modified; Save(); }
public void UpdateUser(User user) { _dbContext.Entry(user).State = EntityState.Modified; Save(); }
public void UpdateRecipeInstruction(RecipeInstruction RecipeInstruction) { _dbContext.Entry(RecipeInstruction).State = EntityState.Modified; Save(); }
public void UpdateBasket(Basket Basket) { _dbContext.Entry(Basket).State = EntityState.Modified; Save(); }
public void UpdateRecipe(Recipe recipe) { _dbContext.Entry(recipe).State = EntityState.Modified; Save(); }
public void UpdateMeasure(Measure measure) { _dbContext.Entry(measure).State = EntityState.Modified; Save(); }