public ActionResult <FamiliaProntuarioQtdeViewModel> GetFamiliaProntuarioQtde([FromHeader] string ibge, [FromRoute] int id_profissional) { try { ibge = _config.GetConnectionString(Helpers.Connection.GetConnection(ibge)); FamiliaProntuarioQtdeViewModel itens = _repository.FamiliaProntuarioQtde(ibge, id_profissional); return(Ok(itens)); } catch (Exception ex) { var response = TrataErro.GetResponse(ex.Message, true); return(StatusCode((int)HttpStatusCode.InternalServerError, response)); } }