public IHttpActionResult pensionAppWEASub(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string serialized_data = token_gen.Authorize_aesdecrpty(data);

                string mappath2  = HttpContext.Current.Server.MapPath("pensionAppWEASubLogs");
                Task   WriteTask = Task.Factory.StartNew(() => new Logdatafile().Write_Log(mappath2, serialized_data));

                subWEAModel rootobj = JsonConvert.DeserializeObject <subWEAModel>(serialized_data);
                return(Ok(pensionDeptHelper.pensionAppWEASub(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }
        public static dynamic pensionAppWEASub(subWEAModel obj)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                obj.data.userName = "******";
                obj.data.password = "******";
                obj.data.systemIp = HttpContext.Current.Request.UserHostAddress;

                string subResponse = string.Empty;
                try
                {
                    subResponse = POST_RequestAsync(WEAsubrUrl, JsonConvert.SerializeObject(obj.data));
                }
                catch (Exception ex)
                {
                    objdata.status = false;
                    objdata.result = "RESPONSE FROM PENSION DEPT : " + ex.Message.ToString();
                    return(objdata);
                }
                subWEARespModel subResp = JsonConvert.DeserializeObject <subWEARespModel>(subResponse);

                if (subResp.Response != null && subResp.Response.status_Code == "104")
                {
                    ScheduleTransactionModel obja = new ScheduleTransactionModel();

                    obja.TYPE = "1";
                    obja.DEPARTMENT_APPLICATION_ID = obj.data.aadharNumber;
                    obja.DEPARTMENT_Transaction_ID = obj.data.grievanceId;
                    obja.GSWS_TRANS_ID             = obj.txnId;
                    obja.STATUS_CODE    = subResp.Response.status_Code;
                    obja.STATUS_MESSAGE = subResp.Response.Remarks;
                    obja.SERVICE_NAME   = "New Pension Verification";



                    transactionHelper transHel = new transactionHelper();
                    DataTable         dt       = transHel.TransactionSchedule_TaskSP(obja);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        objdata.status = true;
                        objdata.result = subResp.Response.Remarks;
                    }
                    else
                    {
                        objdata.status = false;
                        objdata.result = "Failed to submit Details, Please try again !!!";
                    }
                }
                else
                {
                    objdata.status = false;
                    objdata.result = subResp.Response.Remarks;
                }
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(objdata);
        }