// GET: Dashboard/DashboardCompany public string DashboardCompany(BusinessInfo aInfo) { try { var userId = Session["UserId"].ToString(); if (true) { _aDashboardHandler = new DashboardHandler(); var data = _aDashboardHandler.GetMpCompanies(userId, aInfo.EmployeeType); return(JsonConvert.SerializeObject(data)); } } catch (Exception ex) { return(ex.Message); } }
// GET: Configuration/DashboardCompanyJsonData public JsonResult DashboardCompanyJsonData(BusinessInfo aInfo) { DataTable data = null; try { var userId = Session["UserId"].ToString(); if (true) { _aDashboardHandler = new DashboardHandler(); data = _aDashboardHandler.GetMpCompanies(userId, aInfo.EmployeeType); return(Json(data, JsonRequestBehavior.AllowGet)); } } catch (Exception ex) { return(Json(data, JsonRequestBehavior.AllowGet)); } }