private async void ConsumateTransferToSterling(TransferSterlingToSterling sterlingToSterling) { var pddx = await ProgressDialog.Show("Funds Transfer. Please wait."); BusinessLogic bl = new BusinessLogic(); var transferResult = await bl.SterlingToSterlingTransfer(sterlingToSterling); await pddx.Dismiss(); if (transferResult.IBSResponse.ResponseCode == "00") //string testresult = "00"; //if (testresult == "00") { ReloadAcct(); if (svmx.IsSaveAsBeneficiary) { svmx.SaveBeneficiary(); } var trxntagid = transferResult.IBSResponse.TrnxTagID; await Navigation.PushModalAsync(new Pagelanding.CategoryTagLanding(trxntagid)); //MessageDialog.Show("Success", "Funds Transfer was successful.", DialogType.Success, "OK", () => // { // Device.BeginInvokeOnMainThread(() => // { // GoToCategoryLanding(); // }); // } //, "", null); } else { MessageDialog.Show("Error", "Funds Transfer unsuccessful at this time. Please try again", DialogType.Error, "OK", null, "", null); } }
public async Task <IbsresponseRoot> SterlingToSterlingTransfer(TransferSterlingToSterling transferToBankAccount) { string postResponsex = ""; var request = await httpService.PostIBS <TransferSterlingToSterling>(transferToBankAccount, "", URLConstants.SwitchApiLiveBaseUrl, "IBSIntegrator/IBSBridgeJSON", "sterlingToSterlingTransfer"); if (request.IsSuccessStatusCode) { postResponsex = await request.Content.ReadAsStringAsync(); postResponsex = postResponsex.JsonCleanUp(); var jobj = JsonConvert.DeserializeObject <IbsresponseRoot>(postResponsex); return(jobj); } else { return(new IbsresponseRoot()); } }