public string PostGetCurrentDetails([FromBody] BankParamModel <BankAcnt> param) { string retStr = string.Empty; if (string.IsNullOrWhiteSpace(param.caller.callerIP)) { string ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrWhiteSpace(ip)) { ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } param.caller.callerIP = ip; } IBankServiceInterface bankService = null; switch (param.infoData.bankVersionInfo.shortName) { case "ICBCNC": bankService = icbcncBankFactory.CreateBankService(); break; case "ICBCCMP": bankService = icbccmpBankFactory.CreateBankService(); break; } if (bankService != null) { BankReturnModel <DetailInfo[]> retMo = bankService.getCurrentDetails(param.caller, param.infoData, param.minAmt, param.maxAmt, param.nextTag, ""); bankService = null; Dictionary <string, object> dic = new Dictionary <string, object>(); dic.Add("Data", retMo); DCHelper.ConvertDic2Success(dic); return(DCHelper.Message(dic)); } return(retStr); }