public IActionResult Create(PersonCreateVM viewModel)
 {
     if (!ModelState.IsValid)
     {
         return(View(viewModel));
     }
     DataManager.AddPerson(viewModel);
     return(RedirectToAction(nameof(PersonsController.Index)));
 }
        public async Task <Person> Post([FromBody] PersonCreateVM personCreateVM)
        {
            var person = await personRepository.InsertPerson(personCreateVM.Person);

            return(person);
        }