public void Update(UsuarioGrupo item) { using (ISession session = NHibernateHelper.OpenSession()) using (ITransaction transaction = session.BeginTransaction()) { item.UpdateBySession(session); transaction.Commit(); } }