Exemplo n.º 1
0
        public dynamic GetAmmavodiAppStatus(Ammavodi root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                if (Utils.IsAlphaNumeric(root.fadhar_no))
                {
                    //SAMPLE NUMBER 847968535314&schemeId=AMMAVODI
                    var val = GetData("https://jnanabhumi.ap.gov.in/jnbWebservices/services/prajaSachivalayam/getBillStatus?userId=admin&password=jnb@dmin20!9&aadhar=" + root.fadhar_no + "&schemeId=AMMAVODI");

                    var data = GetSerialzedData <dynamic>(val);
                    return(data);
                }
                else
                {
                    obj.Status = 102;
                    obj.Reason = "Invalid Input Request";
                }
            }
            catch (Exception ex)
            {
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                string mappath   = HttpContext.Current.Server.MapPath("AmmavodiExceptionLogs");
                Task   WriteTask = Task.Factory.StartNew(() => new Logdatafile().Write_Log_Exception(mappath, "Error Ammavodi App Status API:" + ex.Message.ToString()));
                //throw new Exception(ex.Message);
                Common_Education_Error(ex.Message.ToString(), "https://jnanabhumi.ap.gov.in/jnbWebservices/services/prajaSachivalayam/getBillStatus?userId=admin&password=jnb@dmin20!9&aadhar=", "2");
            }

            return(obj);
        }
Exemplo n.º 2
0
        public DataTable GetAmmavodiAppStatus_data_helper(Ammavodi obj)
        {
            try
            {
                var comd = new OracleCommand();

                comd.InitialLONGFetchSize = 1000;
                comd.CommandType          = CommandType.StoredProcedure;
                comd.CommandText          = "unemployment.gsws_check_status_npci_data";
                comd.Parameters.Add("ftype", OracleDbType.Varchar2).Value      = obj.ftype;
                comd.Parameters.Add("fdpart_id", OracleDbType.Varchar2).Value  = obj.fdpart_id;
                comd.Parameters.Add("fadhar_no", OracleDbType.Varchar2).Value  = obj.fadhar_no;
                comd.Parameters.Add("P_CUR", OracleDbType.RefCursor).Direction = ParameterDirection.Output;

                DataTable data = GetspsDataAdapter(comd);
                if (data != null && data.Rows.Count > 0)
                {
                    return(data);
                }
                else
                {
                    return(null);
                }
            }
            catch (WebException wex)
            {
                string mappath   = HttpContext.Current.Server.MapPath("AmmavodiExceptionLogs");
                Task   WriteTask = Task.Factory.StartNew(() => new Logdatafile().Write_Log_Exception(mappath, "Error Ammavodi App Status API:" + wex.Message.ToString()));
                throw new Exception(wex.Message);
            }
        }
 public IHttpActionResult GetApplicantStatus(dynamic data)
 {
     try
     {
         //string value = token_gen.Authorize_aesdecrpty(data);
         string   value   = JsonConvert.SerializeObject(data);
         Ammavodi rootobj = JsonConvert.DeserializeObject <Ammavodi>(value);
         return(Ok(eduhel.GetApplicantStatus(rootobj)));
     }
     catch (Exception ex)
     {
         CatchData.Status = 102;
         CatchData.Reason = "Error Occured";
         return(Ok(CatchData));
     }
 }
Exemplo n.º 4
0
        public dynamic GetApplicantStatus(Ammavodi root)
        {
            dynamic obj = new ExpandoObject();

            try
            {
                var val  = PostData("http://push147.sps.ap.gov.in/abwc/API/Schemes/GSWSGetStatus", root);
                var data = GetSerialzedData <dynamic>(val);
                return(data);
            }
            catch (Exception ex)
            {
                obj.Status = 102;
                obj.Reason = ThirdpartyMessage;
                Common_Education_Error(ex.Message.ToString(), "http://push147.sps.ap.gov.in/abwc/API/Schemes/GSWSGetStatus", "2");
                return(obj);
            }
        }