public IHttpActionResult GetAppStatus(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); //string value = JsonConvert.SerializeObject(data); try { AppSta rootobj = JsonConvert.DeserializeObject <AppSta>(value); if (Utils.IsAlphaNumeric(rootobj.ref_no)) { return(Ok(hohel.GetMethod("https://myap.e-pragati.in:443/prweb/PRRestService/LawApplicantsCountAPI/V1/Status/" + rootobj.ref_no))); } else { CatchData.Status = 102; CatchData.Reason = "Special Characters Not Allowed"; return(Ok(CatchData)); } } catch (Exception ex) { CatchData.Status = 102; CatchData.Reason = LawHelper.ThirdpartyMessage; return(Ok(CatchData)); } }
public IHttpActionResult GetAppStatus(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); //string value = JsonConvert.SerializeObject(data); try { AppSta rootobj = JsonConvert.DeserializeObject <AppSta>(value); if (Utils.IsAlphaNumeric(rootobj.ref_no)) { return(Ok(hohel.GetMethod("https://apgovhousing.apcfss.in/APSHCLWEBSERVICES/registeredData/getDetails?ref_no=" + rootobj.ref_no))); } else { CatchData.Status = 102; CatchData.Reason = "Error Occured While Getting Status"; return(Ok(CatchData)); } } catch (Exception ex) { Common_Housing_Error(ex.Message.ToString(), "https://apgovhousing.apcfss.in/APSHCLWEBSERVICES/registeredData/getDetails?ref_no", "2"); CatchData.Status = 102; CatchData.Reason = HousingHelper.ThirdpartyMessage; return(Ok(CatchData)); } }
public dynamic GetMethod(AppSta aobj) { dynamic obj = new ExpandoObject(); try { if (Utils.IsAlphaNumeric(aobj.ref_no)) { UserCred cred = new UserCred { username = "******", password = "******" }; string Token = GetToken("https://gvgs.ap.gov.in/integration-service/integration/api/v1.0/getAccessTokenForDepts", cred); //Uat Details //UserCred cred = new UserCred { username = "******", password = "******" }; //string Token = GetToken("https://qah1-vs-myap.e-pragati.in/integration-service/integration/api/v1.0/getAccessTokenForDepts", cred); dynamic val = null; if (aobj.rtype == "App") { AppCls bobj = new AppCls(); bobj.transactionId = aobj.ref_no; var data = PostData("https://gvgs.ap.gov.in/integration-service/prajasachivalayam/api/v1.0/getApplicationStatus", Token, bobj); val = GetSerialzedData <dynamic>(data); //val = GetData("https://qah1-vs-myap.e-pragati.in/integration-service/prajasachivalayam/api/v1.0/getApplicationStatus?applicationId=" + aobj.ref_no, Token); } else { val = GetData("https://gvgs.ap.gov.in/integration-service/prajasachivalayam/api/v1.0/getApplicationStatus?transactionId=" + aobj.ref_no, Token); } //val = GetData("https://qah1-vs-myap.e-pragati.in/integration-service/prajasachivalayam/api/v1.0/getApplicationStatus?transactionId=" + aobj.ref_no, Token); obj.Status = 100; obj.Reason = "Data Loaded Successfully."; obj.Details = val; } else { obj.Status = 102; obj.Reason = "Error Occured While Load Data"; } return(obj); } catch (Exception ex) { Common_Fisheries_Error(ex.Message.ToString(), "https://gvgs.ap.gov.in/integration-service/prajasachivalayam/api/v1.0/getApplicationStatus", "2"); obj.Status = 102; obj.Reason = FisheriesHelper.ThirdpartyMessage; return(obj); } }
public IHttpActionResult GetAppStatus(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); try { //string value = JsonConvert.SerializeObject(data); AppSta rootobj = JsonConvert.DeserializeObject <AppSta>(value); return(Ok(fihel.GetMethod(rootobj))); } catch (Exception ex) { CatchData.Status = 102; CatchData.Reason = FisheriesHelper.ThirdpartyMessage; return(Ok(CatchData)); } }