示例#1
0
        public IHttpActionResult districtList(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string         serialized_data = JsonConvert.SerializeObject(data);
                NewaadherModel rootobj         = JsonConvert.DeserializeObject <NewaadherModel>(serialized_data);
                return(Ok(KYVHelper.districtList(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }
示例#2
0
        public IHttpActionResult volunteerDetails(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string      serialized_data = JsonConvert.SerializeObject(data);
                familyModel rootobj         = JsonConvert.DeserializeObject <familyModel>(serialized_data);
                return(Ok(KYVHelper.volunteerDetails(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }
示例#3
0
        public IHttpActionResult citizenDetails(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string         serialized_data = token_gen.Authorize_aesdecrpty(data);
                NewaadherModel rootobj         = JsonConvert.DeserializeObject <NewaadherModel>(serialized_data);
                return(Ok(KYVHelper.citizenDetails(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }
示例#4
0
        public IHttpActionResult citizenUpdate(dynamic data)
        {
            dynamic objdata = new ExpandoObject();

            try
            {
                string         serialized_data = token_gen.Authorize_aesdecrpty(data);
                string         mappath2        = HttpContext.Current.Server.MapPath("citizenUpdateLogs");
                Task           WriteTask       = Task.Factory.StartNew(() => new Logdatafile().Write_Log(mappath2, serialized_data));
                NewaadherModel rootobj         = JsonConvert.DeserializeObject <NewaadherModel>(serialized_data);
                return(Ok(KYVHelper.citizenUpdate(rootobj)));
            }
            catch (Exception ex)
            {
                objdata.status = false;
                objdata.result = ex.Message.ToString();
            }
            return(Ok(objdata));
        }