public void Delete(int representativeUserId) { var representativeUser = new RepresentativeUser() { Id = representativeUserId }; _representativeUsers.Attach(representativeUser); _representativeUsers.Remove(representativeUser); }
public void Add(RepresentativeUser representativeUser) { _representativeUsers.Add(representativeUser); }
public void Edit(RepresentativeUser representativeUser) { _dbContext.Entry(representativeUser).State = EntityState.Modified; }