Пример #1
0
 public IEnumerable <User> SearchByName(UserDataContract userDC)
 => master.SearchByName(userDC.ToUser());
Пример #2
0
 public bool Update(UserDataContract userDC)
 => master.Update(userDC.ToUser());
Пример #3
0
 public void Delete(UserDataContract userDC) => master.Delete(userDC.ToUser());
Пример #4
0
 public IEnumerable <User> SearchByLastAndFirstName(UserDataContract userDC)
 => master.SearchByFirstAndLastName(userDC.ToUser());
Пример #5
0
 public bool Remove(UserDataContract user)
 {
     return(master.Remove(user.ToUser()));
 }
Пример #6
0
 public void Add(UserDataContract userDC) => master.Add(userDC.ToUser());
Пример #7
0
 public void Update(UserDataContract user)
 => master.Update(user.ToUser());
Пример #8
0
 public UserDataContract Find(UserDataContract user)
 => master.Find(user.ToUser()).ToUserDataContract();
Пример #9
0
 public int Add(UserDataContract user)
 => master.Add(user.ToUser());
Пример #10
0
        public IEnumerable <User> SearchByName(UserDataContract userDC)
        {
            int slave = slaves.Count == 1 ? 0 : new Random().Next(0, slaves.Count - 1);

            return(slaves[slave].SearchByName(userDC.ToUser()));
        }
Пример #11
0
 public UserDataContract Find(int slaveNumber, UserDataContract user)
 {
     CheckSlaveNumber(slaveNumber);
     return(_slaves[slaveNumber].Find(user.ToUser()).ToUserDataContract());
 }