public async Task <IActionResult> SummaryChartData(ChartDataViewModel viewModel) { if (viewModel.ButtonType == ButtonType.Project) { await _summaryService.GetProjectsPerManagerAsync(viewModel); } if (viewModel.ButtonType == ButtonType.Qualification) { await _summaryService.GetQualificationsByProjectAsync(viewModel); } if (viewModel.ButtonType == ButtonType.Resource) { await _summaryService.GetResourcesByProjectAsync(viewModel); } if (viewModel.ButtonType == ButtonType.Skill) { await _summaryService.GetSkillsByLevelAsync(viewModel); } return(View("Summary", viewModel)); }