private async Task forgetPasswordCommand() { if (!string.IsNullOrEmpty(strPrimeryNumber) && strPrimeryNumber.Length == 10 && !strPrimeryNumber.Contains(" ")) { var Wait = UserDialogs.Instance.Loading("Wait...", null, null, true, MaskType.Black); Wait.Show(); _IAllDataServices = new AllDataServices(); JObject result = await _IAllDataServices.CheckMobileNo(strPrimeryNumber); Wait.Hide(); if (result["StatusCode"].ToString() == "406") { await App.Current.MainPage.DisplayAlert("Error", result["ResponseMessage"].ToString(), "Ok"); } else { await App.Current.MainPage.DisplayAlert("Error", result["ResponseMessage"].ToString(), "Ok"); await Navigation.PopModalAsync(); } } else { await App.Current.MainPage.DisplayAlert("Error", "Invalid Mobile Number!!", "Ok"); } }