public IActionResult Index() { var viewModel = new CreatePerson2ViewModel { }; return(View(viewModel)); }
public IActionResult CreatePerson(CreatePerson2ViewModel model) { if (!ModelState.IsValid) { return(View(model)); } return(View()); }