public async Task <List <Banklist> > ParticipatingBankListAsync2(EmptyIBSCall empty) { try { string postResponsex = ""; participatingBanks pbList = new participatingBanks(); List <Banklist> BankList = new List <Banklist>(); List <string> bankNameList = new List <string>(); var request = await httpService.PostIBS <EmptyIBSCall>(empty, "", URLConstants.SwitchApiLiveBaseUrl, "IBSIntegrator/GetPerticipatingBanksJSON", "GetParticipatingBanks"); if (request.IsSuccessStatusCode) { postResponsex = await request.Content.ReadAsStringAsync(); postResponsex = postResponsex.JsonCleanUp(); postResponsex = postResponsex.TrimStart('"'); var jobj = JsonConvert.DeserializeObject <List <Banklist> >(postResponsex); return(jobj); } else { return(new List <Banklist>()); } } catch (Exception ex) { await BusinessLogic.Log(ex.ToString(), "Exception at get participating bank", "", "", "", "Business Logic"); return(new List <Banklist>()); } }
public async Task <List <IbsresponseRoot> > ParticipatingBankListAsync(EmptyIBSCall empty) { string postResponsex = ""; participatingBanks pbList = new participatingBanks(); List <Banklist> BankList = new List <Banklist>(); List <string> bankNameList = new List <string>(); var request = await httpService.PostIBS <EmptyIBSCall>(empty, "", URLConstants.SwitchApiLiveBaseUrl, "IBSIntegrator/GetPerticipatingBanksJSON", "GetParticipatingBanks"); if (request.IsSuccessStatusCode) { postResponsex = await request.Content.ReadAsStringAsync(); postResponsex = postResponsex.JsonCleanUp(); var jobj = JsonConvert.DeserializeObject <List <IbsresponseRoot> >(postResponsex); return(jobj); } else { return(new List <IbsresponseRoot>()); } }