public async Task SendVerifyCode() { ValidateVerifyCode(); if (string.IsNullOrEmpty(ErrorVerifyCode)) { dialogService.ShowProgress(); RequestVerifyCodeForgortPassword request = new RequestVerifyCodeForgortPassword { Code = VerifyCode, User = Email }; ResponseBase response = await apiService.VerifyCodeForgortPassword(request); dialogService.HideProgress(); if (response.Success) { if (response.StatusCode == 0) { dialogService.ShowProgress(); RequestAuthorizeChangePassword requestAuthorize = new RequestAuthorizeChangePassword { CellPhone = Email }; ResponseAuthorizeChangePassword responseAuthorize = await apiService.AuthorizeChangePasswordByCellPhone(requestAuthorize); dialogService.HideProgress(); if (responseAuthorize.Success) { if (responseAuthorize.StatusCode == 0) { IEditPasswordPageViewModel editPassword = ServiceLocator.Current.GetInstance <IEditPasswordPageViewModel>(); editPassword.Email = responseAuthorize.AuthorizeChangePassword.UserName; editPassword.Code = responseAuthorize.AuthorizeChangePassword.Code; editPassword.CleanData(); await navigationService.ShowModal(Enumerations.AppPages.EditPasswordPage); return; } await dialogService.ShowMessage(responseAuthorize.Title, responseAuthorize.Message); return; } } } await dialogService.ShowMessage(response.Title, response.Message); return; } }