Beispiel #1
0
 public ActionResult <List <ProfissionalViewModel> > GetAll([FromHeader] string ibge)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         string filtro = string.Empty;
         List <ProfissionalViewModel> lista = _profissionalRepository.GetAll(ibge, filtro);
         return(Ok(lista));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }