コード例 #1
0
        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
ファイル: UserService.cs プロジェクト: ThomasTiercin/APIcook
 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();
 }