Example #1
0
        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));
        }
Example #2
0
        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));
        }