public void Update(Supplier entity) { _context.Entry(entity).State = EntityState.Modified; }
public void Add(T entity) { _dbContext.Entry(entity).State = EntityState.Added; _dbSet.Add(entity); }