Esempio n. 1
0
        public void Delete(int representativeUserId)
        {
            var representativeUser = new RepresentativeUser()
            {
                Id = representativeUserId
            };

            _representativeUsers.Attach(representativeUser);
            _representativeUsers.Remove(representativeUser);
        }
Esempio n. 2
0
 public void Add(RepresentativeUser representativeUser)
 {
     _representativeUsers.Add(representativeUser);
 }
Esempio n. 3
0
 public void Edit(RepresentativeUser representativeUser)
 {
     _dbContext.Entry(representativeUser).State = EntityState.Modified;
 }