Example #1
0
        public async Task <IActionResult> Create(InterviewViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                await _service.CreateInterview(viewModel);

                return(RedirectToAction(nameof(Index)));
            }

            return(View(viewModel));
        }