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

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

            try
            {
                var val  = PostData("https://www.ikp.serp.ap.gov.in/VIService/Api/Sthreenidhi/LoanRequestInsert", 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/VIService/Api/Sthreenidhi/LoanRequestInsert", "2");
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                return(obj);
            }
        }