Exemple #1
0
 public async Task <ActionResult> removeAdult([FromRoute] int id)
 {
     try
     {
         service.RemovePerson(id);
         return(Ok());
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         return(StatusCode(500, e.Message));
     }
 }