예제 #1
0
        public IActionResult CreateContact(NewContact viewModel)
        {
            if (ModelState.IsValid)
            {
                listService.AddContact(viewModel);
                return(RedirectToAction(nameof(Success)));
            }

            return(View(viewModel));
        }