public IActionResult Cadastrar([FromBody] Setor setor) { try { return(Ok(_repository.Cadastrar(setor))); } catch (Exception e) { return(BadRequest(e.Message)); } }