public IActionResult Index()
        {
            TestWrapperViewModel model = new TestWrapperViewModel();

            model = _testService.GetTestList();
            return(View(model));
        }
Esempio n. 2
0
        public TestWrapperViewModel GetTestList()
        {
            TestWrapperViewModel model = new TestWrapperViewModel();
            List <TestViewModel> list  = _testRepository.GetAllTests();

            model.TestList = list.Select(x => new TestViewModel
            {
                Id         = x.Id,
                Name       = x.Name,
                CreatedOn  = x.CreatedOn,
                ModifiedOn = x.ModifiedOn,
                CreatedBy  = x.CreatedBy,
                JobRoleId  = x.JobRoleId
            }).ToList();
            return(model);
        }