Beispiel #1
0
        public ActionResult ResultManagement()
        {
            var allResults =
                _getInfoService.GetAllTestingResults()
                .Select(r => _mapper.Map <TestingResultViewModel>(r))
                .ToList();

            return(View(allResults));
        }
        public JsonResult GetAllTestingResults()
        {
            var allResults =
                _getInfoService.GetAllTestingResults()
                .Select(r => _mapper.Map <TestingResultViewModel>(r))
                .ToList();

            return(Json(allResults, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        //public JsonResult GetAllTestingResults()
        public IEnumerable <TestingUrViewModel> GetAllTestingResults()
        {
            var allResults =
                _getInfoService.GetAllTestingResults()
                .Select(r => _mapper.Map <TestingUrViewModel>(r))
                .ToList();

            //return Json(allResults, JsonRequestBehavior.AllowGet);
            return(allResults);
        }