Пример #1
0
        public JsonResult GetMyTaskCount()
        {
            BL_ICE      objtskscount = new BL_ICE();
            CurrentInfo objInfo      = new CurrentInfo();

            return(Json(objtskscount.GetTaskLiveCount(objInfo.GetCompanyCode(), objInfo.GetUserCode(), objInfo.GetUserName()), JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public JsonResult GetTaskLiveCount()
        {
            string companyCode = null;
            string userCode    = null;
            string createdBy   = null;

            try
            {
                BL_ICE      objtskscount       = new BL_ICE();
                CurrentInfo _ObjectCurrentInfo = new CurrentInfo();
                companyCode = ViewBag.Company_Code = _ObjectCurrentInfo.GetCompanyCode();
                userCode    = ViewBag.User_Code = _ObjectCurrentInfo.GetUserCode();
                createdBy   = ViewBag.Created_By = _ObjectCurrentInfo.GetUserName();
                return(Json(objtskscount.GetTaskLiveCount(companyCode, userCode, createdBy), JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                throw;
            }
        }