public ActionResult EditPersonDetails(PersonDetailsForm form) { if (!ModelState.IsValid) return RedirectToAction("Edit"); _personService.Edit(form); return RedirectToAction("Edit"); }
public void Edit(PersonDetailsForm form) { _endowmentHandlers.Person.Edit(form.Id, form.Name, form.Surname); _endowmentHandlers.SaveChanges(); }