private async void ValidateRegister(ResponsePreRegister response)
        {
            await dialogService.ShowMessage(response.Title, response.Message);

            if (response.Success && response.StatusCode == 0)
            {
                await navigationService.Navigate(AppPages.LoginPage);
            }
        }
 private async void ValidateVerificationCode(ResponsePreRegister responsePreRegister)
 {
     if (responsePreRegister.StatusCode == 9)
     {
         await dialogService.ShowMessage(responsePreRegister.Title, responsePreRegister.Message);
     }
     else
     {
         await navigationService.Navigate(AppPages.RegisterNamePage);
     }
 }
        private async void ValidateSendVerificationCode(ResponsePreRegister responsePreRegister)
        {
            UpdateEmail = false;
            if (responsePreRegister.Success && responsePreRegister.StatusCode == 0)
            {
                UpdateEmail = true;
                await navigationService.Navigate(AppPages.RegisterVerificationCodePage);

                return;
            }

            await dialogService.ShowMessage(responsePreRegister.Title, responsePreRegister.Message);
        }
        private async void ValidateResponsePLS(ResponsePreRegister responsePreRegister)
        {
            if (responsePreRegister.StatusCode == 14)
            {
                LoadFullName(responsePreRegister.UserNames);
                await navigationService.Navigate(AppPages.RegisterUpdateCellPhonePage);

                return;
            }

            if (responsePreRegister.StatusCode != 0)
            {
                //Validacion usuario ya registrado y activo codigo 11
                if (responsePreRegister.StatusCode == 11)
                {
                    bool result = await dialogService.ShowConfirm(responsePreRegister.Title, responsePreRegister.Message);

                    if (result)
                    {
                        IRememberPasswordPageViewModel rememberPassword = ServiceLocator.Current.GetInstance <IRememberPasswordPageViewModel>();
                        rememberPassword.Email = Email;
                        await rememberPassword.ValidateUser();
                    }
                }
                else
                {
                    await dialogService.ShowMessage(responsePreRegister.Title, responsePreRegister.Message);
                }
            }

            if (responsePreRegister.StatusCode == 0 && responsePreRegister.UserNames.DataLoaded)
            {
                LoadFullName(responsePreRegister.UserNames);
                TittlePage        = "Verificar";
                DescriptionPage   = string.Format("Para continuar tu registro, verifica datos de: {0} {1} {2} {3}", NameOne, NameTwo, LastNameOne, LastNameTwo);
                IsEnabledEditName = DocumentSelected.Name == "Pasaporte";
                await navigationService.Navigate(AppPages.RegisterNamePage);

                return;
            }

            if (responsePreRegister.StatusCode == 0 && !responsePreRegister.UserNames.DataLoaded)
            {
                TittlePage        = "Registro";
                DescriptionPage   = "Ingresa los siguientes datos para completar el registro.";
                IsEnabledEditName = true;
                await navigationService.Navigate(AppPages.RegisterNamePage);

                return;
            }
        }
        private async void ValidateUserPLS()
        {
            dialogService.ShowProgress();
            Register register = new Register();

            ViewModelHelper.SetRegisterViemModelToRegister(this, register);
            RequestPreRegister request = new RequestPreRegister {
                Register = register
            };
            ResponsePreRegister responsePreRegister = await apiService.PreRegister(request);

            dialogService.HideProgress();
            ValidateResponsePLS(responsePreRegister);
        }
        private async void SendVerificationCode()
        {
            dialogService.ShowProgress();
            Register register = new Register();

            ViewModelHelper.SetRegisterViemModelToRegister(this, register);
            RequestSendVerificationCode request = new RequestSendVerificationCode {
                Register = register
            };
            ResponsePreRegister responsePreRegister = await apiService.SendVerificationCode(request);

            dialogService.HideProgress();
            ValidateSendVerificationCode(responsePreRegister);
        }
        private async void Complete()
        {
            ValidatePasswords();
            if (string.IsNullOrEmpty(ErrorPassword) && string.IsNullOrEmpty(ErrorConfirmationPassword))
            {
                dialogService.ShowProgress();
                Register register = new Register();
                ViewModelHelper.SetRegisterViemModelToRegister(this, register);
                RequestRegister request = new RequestRegister {
                    Register = register
                };
                ResponsePreRegister response = await apiService.Register(request);

                dialogService.HideProgress();
                ValidateRegister(response);
            }
        }