public IHttpActionResult GetEligibleDetails(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); try { //string value = JsonConvert.SerializeObject(data); SRSGeoGraphical rootobj = JsonConvert.DeserializeObject <SRSGeoGraphical>(value); return(Ok(SERPhel.GetEligibleDetails(rootobj))); } catch (Exception ex) { CatchData.Status = 102; CatchData.Reason = SERPHelper.ThirdpartyMessage; return(Ok(CatchData)); } }
public dynamic GetEligibleDetails(SRSGeoGraphical root) { dynamic obj = new ExpandoObject(); try { var val = PostData("https://www.ikp.serp.ap.gov.in/VIService/Api/Sthreenidhi/GetEligibleDetails", root); var data = GetSerialzedData <dynamic>(val); obj.Status = 100; obj.Reason = "Data Loaded Successfully."; obj.Details = data; return(obj); } catch (Exception ex) { Common_SERP_Error(ex.Message.ToString(), "https://www.ikp.serp.ap.gov.in/VIService/Api/Sthreenidhi/GetEligibleDetails", "2"); obj.Status = 102; obj.Reason = ThirdpartyMessage; return(obj); } }