示例#1
0
 public ActionResult <Person> Get(int id)
 {
     try
     {
         return(Ok(_ps.GetById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }