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());
public bool Remove(UserDataContract user) { return(master.Remove(user.ToUser())); }
public void Add(UserDataContract userDC) => master.Add(userDC.ToUser());
public void Update(UserDataContract user) => master.Update(user.ToUser());
public UserDataContract Find(UserDataContract user) => master.Find(user.ToUser()).ToUserDataContract();
public int Add(UserDataContract user) => master.Add(user.ToUser());
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())); }
public UserDataContract Find(int slaveNumber, UserDataContract user) { CheckSlaveNumber(slaveNumber); return(_slaves[slaveNumber].Find(user.ToUser()).ToUserDataContract()); }