public ActionResult Index() { DashboardViewModel model = new DashboardViewModel() { DetectionsBySeverity = PieChartUtil.ExecuteQueryAndReturnPieChart(DashboardRepository.DetectionsBySeverity(), "detects_by_severity"), DetectionsByStatus = PieChartUtil.ExecuteQueryAndReturnPieChart(DashboardRepository.DetectionsByStatus(), "detects_by_status"), DetectionsByType = BarChartUtil.CreateBarChart(DashboardRepository.DetectionsByType(), "detects_by_type"), DetectionsByUserDepartment = BarChartUtil.CreateMultiSeriesBarChart(DashboardRepository.DetectionsByUserDepatment(), "detects_by_user_department"), DetectionsByUserCountry = BarChartUtil.CreateMultiSeriesBarChart(DashboardRepository.DetectionsByUserCountry(), "detects_by_user_country"), DetectionsByUserJobTitle = BarChartUtil.CreateMultiSeriesBarChart(DashboardRepository.DetectionsByUserJobTitle(), "detects_by_user_jobtitle"), DetectionsByHandlerAndStatus = ColumnChartUtil.CreateStacked(DashboardRepository.DetectionsByHandlerAndStatus(), "detects_by_handler_and_status"), DetectionsByTaxonomy = BarChartUtil.CreateBarChart(DashboardRepository.DetectionsByTaxonomy(), "detects_by_taxonomy"), AverageDetectionsPerDay = DashboardRepository.AverageDetectionsPerDay(), AverageDetectionsPerWeek = DashboardRepository.AverageDetectionsPerWeek(), AverageDetectionsPerMonth = DashboardRepository.AverageDetectionsPerMonth() }; return(View(model)); }