public IActionResult Deletar(int id) { try { _servico.Deletar(id); return(new NoContentResult()); } catch (ArgumentException ex) { return(NotFound(ex)); } catch (Exception ex) { return(BadRequest(ex)); } }