public IHttpActionResult ApplyForJobs(dynamic data) { string value = token_gen.Authorize_aesdecrpty(data); try { //string value = JsonConvert.SerializeObject(data); JobsCls rootobj = JsonConvert.DeserializeObject <JobsCls>(value); return(Ok(YATChel.ApplyForJobs(rootobj))); } catch (Exception ex) { CatchData.Status = 102; CatchData.Reason = YATCHelper.ThirdpartyMessage; return(Ok(CatchData)); } }
public dynamic ApplyForJobs(JobsCls root) { dynamic obj = new ExpandoObject(); try { var val = PostData("https://www.apssdc.in/home/api/mobile/candidate/applyforjob?appKey=" + root.appKey + "&userMasterId=" + root.userMasterId, root.JobIds); var data = GetSerialzedData <dynamic>(val); obj.Status = 100; obj.Reason = "Data Loaded Successfully."; obj.Details = data; return(obj); } catch (Exception ex) { Common_YATC_Error(ex.Message.ToString(), "https://www.apssdc.in/home/api/mobile/candidate/applyforjob?appKey=", "2"); obj.Status = 102; obj.Reason = ThirdpartyMessage; return(obj); } }