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

            try
            {
                //string value = JsonConvert.SerializeObject(data);
                SpandanaStatusModel rootobj = JsonConvert.DeserializeObject <SpandanaStatusModel>(value);
                return(Ok(Revenuehel.GetSpandanaDetailedDashboardCount(rootobj)));
            }
            catch (Exception ex)
            {
                CatchData.Status  = "Failure";
                CatchData.Message = CommonSPHel.ThirdpartyMessage;
                return(Ok(CatchData));
            }
        }
Exemplo n.º 2
0
        public dynamic GetSpandanaDetailedDashboardCount(SpandanaStatusModel objinput)
        {
            try
            {
                var data = new EncryptDecrypt().GetspandanaData(sapandanaurl.spandanadetailedurl + objinput.SeccCode + "/" + objinput.Statusid, objinput.token);

                dynamic objdata = JsonConvert.DeserializeObject <dynamic>(data);

                return(objdata);
            }
            catch (Exception ex)
            {
                Common_Revenue_Error(ex.Message.ToString(), "spandanadetailedurl", "2");
                string mappath   = HttpContext.Current.Server.MapPath("SpandanaExceptionLogs");
                Task   WriteTask = Task.Factory.StartNew(() => new Logdatafile().Write_ReportLog_Exception(mappath, "Error From GetSpandanaDetailedCount:" + ex.Message.ToString()));
                throw ex;
            }
        }
Exemplo n.º 3
0
        public dynamic GetSpandanaCheck(SpandanaStatusModel objinput)
        {
            try
            {
                object obj = new {
                    Statusid    = "1",
                    Search_Type = objinput.grievancid
                };


                var data = new EncryptDecrypt().SpandanaPostData(sapandanaurl.SpandanaStatusCheck, obj, objinput.token);

                dynamic objdata = JsonConvert.DeserializeObject <dynamic>(data);

                return(objdata);
            }
            catch (Exception ex)
            {
                Common_Revenue_Error(ex.Message.ToString(), "SpandanaStatusCheck", "2");
                string mappath   = HttpContext.Current.Server.MapPath("SpandanaExceptionLogs");
                Task   WriteTask = Task.Factory.StartNew(() => new Logdatafile().Write_ReportLog_Exception(mappath, "Error From GetSpandanaDepartment:" + ex.Message.ToString()));
                throw ex;
            }
        }