private async void ResendExecute() { if (_sentCode == null) { //... return; } if (_sentCode.HasNextType) { IsLoading = true; var response = await LegacyService.ResendCodeAsync(_phoneNumber, _sentCode.PhoneCodeHash); if (response.IsSucceeded) { if (response.Result.Type is TLAuthSentCodeTypeSms || response.Result.Type is TLAuthSentCodeTypeApp) { NavigationService.Navigate(typeof(SignInSentCodePage), new SignInSentCodePage.NavigationParameters { PhoneNumber = _phoneNumber, //Result = response.Result }); } } } }