private void validateWorkerDataToUpdate(WorkerBundle newWorkerInfo) { if (newWorkerInfo.Name != null) { validator.validateStringData(null, newWorkerInfo); validator.validatePhoneNumber(null, newWorkerInfo); } }
private void validateClientDataToUpdate(ClientBundle newClientInfo) { validator.validateStringData(newClientInfo); validator.validatePhoneNumber(newClientInfo); }