コード例 #1
0
        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));
        }
コード例 #2
0
        public IActionResult CreateSessionEvent()
        {
            var viewModel = new CreateSessionEventViewModel();

            return(View(viewModel));
        }