public ActionResult EditPerson(Person person) { PeopleDb pdb = new PeopleDb(Properties.Settings.Default.conStr); pdb.EditPerson(person); return(Json(person)); }
public IActionResult EditPerson(Person person) { var db = new PeopleDb(_conStr); db.EditPerson(person); return(Json(person)); }