public ActionResult TestManagement() { var allTests = _getInfoService.GetAllTests().Select(t => _advancedMapper.MapTest(t)).ToList(); if (allTests != null) { return(View(allTests)); } return(HttpNotFound()); }
// public JsonResult GetAllTests() public IEnumerable <TestViewModel> GetAllTests() { var allTests = _getInfoService.GetAllTests().Select(t => _advancedMapper.MapTest(t)).ToList(); return(allTests); //return Json(allTests, JsonRequestBehavior.AllowGet); }
public JsonResult GetAllTests() { var allTests = _getInfoService.GetAllTests().Select(t => _advancedMapper.MapTest(t)).ToList(); return(Json(allTests, JsonRequestBehavior.AllowGet)); }
public ActionResult CreateTestingUrl() { ViewBag.allTestsName = _getInfoService.GetAllTests().ToList(); return(View()); }