public void Update(Ingredient file) { _context.Entry(file).State = EntityState.Modified; }
public void Create(Ingredient item) { _context.Set <Ingredient>().Add(item ?? throw new ArgumentNullException("Ingredient must be not null!")); }