Example #1
0
        public ActionResult CreateTestingUrl(TestingUrlViewModel testingUrl)
        {
            var testUrlDomain = _advancedMapper.MapTestingUrlViewModel(testingUrl);

            _highLevelTestManagementService.CreateTestingUrl(testUrlDomain);
            return(RedirectToAction("TestingUrlManagement", "Admin"));
        }
Example #2
0
        public ActionResult CreateTestingUrl(ModelAndInfo <TestingUrlViewModel> model)
        {
            if (model != null)
            {
                if (model.TransferModel.AllowedEndDate == null)
                {
                    model.TransferModel.AllowedEndDate = new DateTime().ToString();
                }
                if (model.TransferModel.AllowedStartDate == null)
                {
                    model.TransferModel.AllowedStartDate = new DateTime().ToString();
                }
            }
            if (ModelState.IsValid)
            {
                var testUrlDomain = _advancedMapper.MapTestingUrlViewModel(model.TransferModel);
                _highLevelTestManagementService.CreateTestingUrl(testUrlDomain);
                return(RedirectToAction("TestingUrlManagement", "Admin"));
            }

            return(View(model));
        }
Example #3
0
        public void CreateTestingUrl(TestingUrlViewModel testingUrl)
        {
            var testUrlDomain = _advancedMapper.MapTestingUrlViewModel(testingUrl);

            _highLevelTestManagementService.CreateTestingUrl(testUrlDomain);
        }