public IActionResult Excluir(int id) { try { return(Ok(_repository.Excluir(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }