public async Task <IActionResult> CreateSessionEvent(CreateSessionEventRequest request) { if (ModelState.IsValid) { var response = await _adminService.CreateSessionEvent(request); if (response.IsSuccessful) { AddNotifications(response); return(RedirectToAction(nameof(AdminController.SessionEventManagement))); } AddFormErrors(response); } var viewModel = new CreateSessionEventViewModel(request); return(View(viewModel)); }
public IActionResult CreateSessionEvent() { var viewModel = new CreateSessionEventViewModel(); return(View(viewModel)); }