Ejemplo n.º 1
0
        public IActionResult Index(DashboardViewModel model)
        {
            var results = resultService.GetTestResultsForDashBoard();
            var TestResultViewModels = this.mapper.EnumerableProjectTo <TestResultDto, TestResultViewModel>(results).ToList();

            model.TestResults = TestResultViewModels;



            var existingTestDtos = testService.AllTestsForDashBoard();
            var existingTests    = this.mapper.EnumerableProjectTo <ExistingTestDto, ExistingTestViewModel>(existingTestDtos).ToList();

            model.ExistingTests = existingTests;

            return(View(model));
        }