Пример #1
0
 public ActionResult <List <ProfissionalViewModel> > GetCBOByMedicoUnidade([FromHeader] string ibge, int codmed, int coduni, string cbo = "")
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         List <ProfissionalViewModel> cbos = _profissionalRepository.GetCBOByMedicoUnidade(ibge, codmed, coduni, cbo);
         return(Ok(cbos));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }