예제 #1
0
 public ActionResult <Profissional> GetProfissionalById([FromHeader] string ibge, [FromRoute] int profissional)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         Profissional lista = _profissionalRepository.GetProfissionalById(ibge, profissional);
         return(Ok(lista));
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }