예제 #1
0
        public IActionResult EditPerson(Person p)
        {
            var db = new PeopleDB(_connectionString);

            db.EditPerson(p);
            return(Json(p));
        }
 public IActionResult EditPerson(Person person)
 {
     return(Json(new { Success = _database.EditPerson(person) == 1 }));
 }