public SettingsLogic(ISession session)
        {
            if (session.IsOpen == false)
            {
                session = FluentNHibernateSessionManager.OpenSession();
            }

            _moduleRepository       = new Repository <Module>(session);
            _moduleActionRepository = new Repository <ModuleAction>(session);
        }
 public Repository()
 {
     _session = FluentNHibernateSessionManager.OpenSession();
 }