public ActionResult CreateTestingUrl(TestingUrlViewModel testingUrl) { var testUrlDomain = _advancedMapper.MapTestingUrlViewModel(testingUrl); _highLevelTestManagementService.CreateTestingUrl(testUrlDomain); return(RedirectToAction("TestingUrlManagement", "Admin")); }
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)); }
public void CreateTestingUrl(TestingUrlViewModel testingUrl) { var testUrlDomain = _advancedMapper.MapTestingUrlViewModel(testingUrl); _highLevelTestManagementService.CreateTestingUrl(testUrlDomain); }