Beispiel #1
0
        public IHttpActionResult GetMUIDAppStatus(dynamic data)
        {
            string value = token_gen.Authorize_aesdecrpty(data);

            try
            {
                MUIDCls rootobj = JsonConvert.DeserializeObject <MUIDCls>(value);
                return(Ok(heahel.GetMUIDAppStatus(rootobj)));
            }
            catch (Exception ex)
            {
                CatchData.Status = 102;
                CatchData.Reason = ServicesHelper.ThirdpartyMessage;
                return(Ok(CatchData));
            }
        }
        public dynamic GetMUIDAppStatus(MUIDCls root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                TransCls tobj = new TransCls();
                tobj.txn_id             = "";
                tobj.application_number = root.application_number;

                var val  = PostData("https://" + root.ulb + "-uat.egovernments.org/wardsecretary/transaction/status", tobj);
                var data = GetSerialzedData <dynamic>(val);
                obj.Status  = 100;
                obj.Reason  = "Data Loaded Successfully.";
                obj.Details = data;
                return(obj);
            }
            catch (Exception ex)
            {
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                return(obj);
            }
        }