Exemple #1
0
 public ActionResult <Person> Edit([FromBody] Person update, int id)
 {
     try
     {
         update.Id = id;
         return(Ok(_ps.Edit(update)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }