예제 #1
0
        public ActionResult EditPersonDetails(PersonDetailsForm form)
        {
            if (!ModelState.IsValid) return RedirectToAction("Edit");

            _personService.Edit(form);
            return RedirectToAction("Edit");
        }
예제 #2
0
 public void Edit(PersonDetailsForm form)
 {
     _endowmentHandlers.Person.Edit(form.Id, form.Name, form.Surname);
     _endowmentHandlers.SaveChanges();
 }