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

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