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

            try
            {
                string serialized_data        = token_gen.Authorize_aesdecrpty(data);
                habitationMasterModel rootobj = JsonConvert.DeserializeObject <habitationMasterModel>(serialized_data);
                return(Ok(pensionDeptHelper.habitationList(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }
        public static dynamic habitationList(habitationMasterModel obj)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                obj.flag     = "P";
                obj.password = "******";
                obj.userName = "******";

                string           habResponse = POST_RequestAsync(panchayatMasterUrl, JsonConvert.SerializeObject(obj));
                habResponseModel habRespObj  = JsonConvert.DeserializeObject <habResponseModel>(habResponse);
                if (string.IsNullOrEmpty(habResponse))
                {
                    objdata.status = false;
                    objdata.result = "No Response from pension department habitation list service !!!, Please try after some time";
                    return(objdata);
                }

                if (habRespObj.HabitationList != null)
                {
                    objdata.status = true;
                    objdata.result = habRespObj.HabitationList;
                }
                else
                {
                    objdata.status = false;
                    objdata.result = "NO RESPONSE FROM PENSION DEPT : ";
                }
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = "RESPONSE FROM PENSION DEPT : " + ex.Message.ToString();
            }
            return(objdata);
        }