public IList<PersoanaIMO> GetPersoaneIMO(string nume, string prenume, string functie,string firma, bool siAnulati, bool ordoneazaNume) { BusinessPersoana bus = null; IList<PersoanaIMO> ret = null; ITransaction tx = null; try { tx = nHibernateUtil.BeginTransaction(); bus = new BusinessPersoana(); ret = bus.GetPersoaneIMO(nume,prenume,functie,firma,siAnulati,ordoneazaNume); tx.Commit(); } catch (Exception ex) { LogMessage.Error(ex); if (!nHibernateUtil.GetSession.Transaction.WasCommitted && !nHibernateUtil.GetSession.Transaction.WasRolledBack) { nHibernateUtil.GetSession.Transaction.Rollback(); } throw ex; } finally { nHibernateUtil.CloseSession(); bus = null; } return ret; }