Exemple #1
0
 public IActionResult Create(CreatePersonVM person)
 {
     if (ModelState.IsValid)
     {
         _people.Create(person.CreatePerson());
         return(RedirectToAction("PersonProjectIndex", "ProjectRole"));
     }
     return(View());
 }
 public IActionResult Create(CreatePersonVM personVM)
 {
     if (ModelState.IsValid)
     {
         _people.Create(personVM.CreatePerson());
         return(RedirectToAction("Index"));
     }
     return(View());
 }