// 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)); } }
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)); } }