public dynamic GetApplicantStatus(BrahminModel oj) { dynamic obj = new ExpandoObject(); try { if (Utils.IsAlphaNumeric(oj.INPUT)) { var val = Endowsphel.PostData("http://push147.sps.ap.gov.in/abwc/API/Schemes/GSWSGetStatus", oj); var data = Endowsphel.GetSerialzedData <dynamic>(val); return(data); } else { obj.Status = "Failure"; obj.Reason = "Invalid Input Format"; return(obj); } } catch (Exception ex) { obj.Status = "Failure"; obj.Reason = ThirdpartyMessage; Common_Endowments_Error(ex.Message.ToString(), "http://push147.sps.ap.gov.in/abwc/API/Schemes/GSWSGetStatus", "2"); return(obj); } }
public IHttpActionResult GetApplicantStatus(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); try { //string value = JsonConvert.SerializeObject(data); BrahminModel rootobj = JsonConvert.DeserializeObject <BrahminModel>(value); return(Ok(Endowhel.GetApplicantStatus(rootobj))); } catch (Exception ex) { CatchData.Status = "Failure"; CatchData.Reason = ex.Message; return(Ok(CatchData)); } }