public void Create(Users entity) { _dbContext.Entry(entity).State = EntityState.Added; _dbContext.SaveChanges(); }
public void Update(Tickets entity) { _dbContext.Entry(entity).State = EntityState.Modified; _dbContext.SaveChanges(); }