public IActionResult Edit(Person person) { if (ModelState.IsValid) { people.Create(person); return(RedirectToAction("Index")); } return(View(person)); }
public IActionResult Edit(Person person) { if (ModelState.IsValid) { people.Create(person); return(RedirectToAction("Index")); } return(View(person)); }