Exemplo n.º 1
0
        public IHttpActionResult LoadHelpGroups(dynamic data)
        {
            string value = token_gen.Authorize_aesdecrpty(data);

            try
            {
                //string value = JsonConvert.SerializeObject(data);
                VillageOrg rootobj = JsonConvert.DeserializeObject <VillageOrg>(value);
                return(Ok(SERPhel.LoadHelpGroups(rootobj)));
            }
            catch (Exception ex)
            {
                CatchData.Status = 102;
                CatchData.Reason = SERPHelper.ThirdpartyMessage;
                return(Ok(CatchData));
            }
        }
Exemplo n.º 2
0
        public dynamic LoadHelpGroups(VillageOrg root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                var val  = PostData("https://www.ikp.serp.ap.gov.in/VISERP/Api/SerpBL/GetAllShgs", root);
                var data = GetSerialzedData <dynamic>(val);
                obj.Status  = 100;
                obj.Reason  = "Data Loaded Successfully.";
                obj.Details = data;
                return(obj);
            }
            catch (Exception ex)
            {
                Common_SERP_Error(ex.Message.ToString(), "https://www.ikp.serp.ap.gov.in/VISERP/Api/SerpBL/GetAllShgs", "2");
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                return(obj);
            }
        }