public IList <GedDocumentoDTO> selectDocumento(GedDocumentoDTO documento) { try { using (ISession session = NHibernateHelper.getSessionFactory().OpenSession()) { DocumentoDAL documentoDAL = new DocumentoDAL(session); IList <GedDocumentoDTO> resultado = documentoDAL.selectDocumentosAtivos(documento); session.Flush(); return(resultado); } } catch (Exception ex) { throw ex; } }