public IEnumerable <User> SearchByName(UserDataContract userDC)
 => master.SearchByName(userDC.ToUser());
 public bool Update(UserDataContract userDC)
 => master.Update(userDC.ToUser());
 public void Delete(UserDataContract userDC) => master.Delete(userDC.ToUser());
 public IEnumerable <User> SearchByLastAndFirstName(UserDataContract userDC)
 => master.SearchByFirstAndLastName(userDC.ToUser());
Example #5
0
 public bool Remove(UserDataContract user)
 {
     return(master.Remove(user.ToUser()));
 }
 public void Add(UserDataContract userDC) => master.Add(userDC.ToUser());
Example #7
0
 public void Update(UserDataContract user)
 => master.Update(user.ToUser());
Example #8
0
 public UserDataContract Find(UserDataContract user)
 => master.Find(user.ToUser()).ToUserDataContract();
Example #9
0
 public int Add(UserDataContract user)
 => master.Add(user.ToUser());
Example #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()));
        }
Example #11
0
 public UserDataContract Find(int slaveNumber, UserDataContract user)
 {
     CheckSlaveNumber(slaveNumber);
     return(_slaves[slaveNumber].Find(user.ToUser()).ToUserDataContract());
 }