public ActionResult <ProcedimentoAvulso> ExcluirItem([FromHeader] string ibge, int id, int idproc) { try { ibge = _config.GetConnectionString(Connection.GetConnection(ibge)); _repository.ExcluirItem(ibge, id, idproc); return(Ok()); } catch (Exception ex) { var response = TrataErro.GetResponse(ex.Message, true); return(StatusCode((int)HttpStatusCode.InternalServerError, response)); } }