コード例 #1
0
 public ActionResult <Usuario> Delete(string id)
 {
     try
     {
         return(Ok(_service.Delete(id)));
     }
     catch (NotFoundException)
     {
         return(NotFound("Usuário não encontrado!"));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }