// GET: Configuration/DashboardUnitJsonData
        public JsonResult DashboardUnitJsonData(BusinessInfo aInfo)
        {
            var userId = Session["UserId"].ToString();

            if (true)
            {
                _aDashboardHandler = new DashboardHandler();
                var data = _aDashboardHandler.GetMpUnits(userId, aInfo.EmployeeType);
                return(Json(data, JsonRequestBehavior.AllowGet));
            }
        }
Example #2
0
        public string DashboardUnit(BusinessInfo aInfo)
        {
            var userId = Session["UserId"].ToString();

            if (true)
            {
                _aDashboardHandler = new DashboardHandler();
                var data = _aDashboardHandler.GetMpUnits(userId, aInfo.EmployeeType);
                return(JsonConvert.SerializeObject(data));
            }
        }