コード例 #1
0
 public ActionResult <Contato> DeleteContato(int id, int idContato)
 {
     try
     {
         return(_service.DeleteContato(id, idContato));
     }
     catch (NotFoundException e)
     {
         return(NotFound(e.Message));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }