public ActionResult TestingUrlManagement() { var testingsList = _getInfoService.GetAllTestingUrls(); var parsedTestingsList = testingsList.Select(t => _advancedMapper.MapTestingUrl(t)).ToList(); return(View(parsedTestingsList)); }
public ActionResult Quiz(string guid) { var testUrlDomain = _getInfoService.GetTestingUrlByGuid(guid); var error = _advancedLogicService.CheckTestingUrlForAvailability(testUrlDomain); if (!string.IsNullOrEmpty(error)) { return(View("TestingErrorView", (object)error)); } //if all is ok var testUrl = _advancedMapper.MapTestingUrl(testUrlDomain); var model = new ModelAndInfo <TestingUrlViewModel> { TransferModel = testUrl, Guid = guid }; CurrentTest = new TestPassingViewModel() { TestingStartDateTime = DateTime.Now.ToString(), Interviewee = testUrl.Interviewee, TestingGuid = testUrl.TestGuid }; return(View(model)); }
public JsonResult GetAllTestingUrls() { var testingsList = _getInfoService.GetAllTestingUrls(); var parsedTestingsList = testingsList.Select(t => _advancedMapper.MapTestingUrl(t)).ToList(); return(Json(parsedTestingsList, JsonRequestBehavior.AllowGet)); }
//public JsonResult GetAllTestingUrls() public IEnumerable <TestingUrlViewModel> GetAllTestingUrls() { var testingsList = _getInfoService.GetAllTestingUrls(); var parsedTestingsList = testingsList.Select(t => _advancedMapper.MapTestingUrl(t)).ToList(); return(parsedTestingsList); //return Json(parsedTestingsList, JsonRequestBehavior.AllowGet); }
public ActionResult TestingUrlManagement() { var testingsList = _getInfoService.GetAllTestingUrls(); var parsedTestingsList = testingsList.Select(t => _advancedMapper.MapTestingUrl(t)).ToList(); foreach (var test in parsedTestingsList) { test.UrlInstance = CreateUrlLink(test.Guid); } return(View(parsedTestingsList)); }
public ActionResult Quiz(string guid) { var testUrlDomain = _getInfoService.GetTestingUrlByGuid(guid); var error = _advancedLogicService.CheckTestingUrlForAvailability(testUrlDomain); if (!string.IsNullOrEmpty(error)) { return(View("TestingErrorView", (object)error)); } //if all is ok var testUrl = _advancedMapper.MapTestingUrl(testUrlDomain); return(View(testUrl)); }