public static dynamic EndorsementsList(EndorsementDetailsModel obj)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                obj.password = "******";
                obj.username = "******";
                string EndorsResponse = POST_RequestAsync(EndorsementListUrl, JsonConvert.SerializeObject(obj));
                if (string.IsNullOrEmpty(EndorsResponse))
                {
                    objdata.status = false;
                    objdata.result = "No Response from pension department service !!!, Please try after some time";
                    return(objdata);
                }

                endorsDetailsRespModel endorsRespObj = JsonConvert.DeserializeObject <endorsDetailsRespModel>(EndorsResponse);
                if (endorsRespObj.responseCode == "1000")
                {
                    objdata.status = true;
                    objdata.result = endorsRespObj.details.resultData;
                }
                else
                {
                    objdata.status = false;
                    objdata.result = "RESPONSE FROM PENSION DEPT : " + endorsRespObj.remarks;
                }
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = "RESPONSE FROM PENSION DEPT : " + ex.Message.ToString();
            }
            return(objdata);
        }
        public IHttpActionResult EndorsementList(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string serialized_data          = token_gen.Authorize_aesdecrpty(data);
                EndorsementDetailsModel rootobj = JsonConvert.DeserializeObject <EndorsementDetailsModel>(serialized_data);
                return(Ok(pensionDeptHelper.EndorsementsList(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }