Exemplo n.º 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));
        }
Exemplo n.º 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;
            }
        }