예제 #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     VariablesAplicacion.LoadOnInit();
     Menu.CreateRolesMenu();
     NHibernateManager.GetInstance().CerrarSessionInicioAplicacion();
     CustomModelBindersConfig.RegisterCustomModelBinders();
 }
예제 #2
0
 public static void LoadOnInit()
 {
     roles = RolLogic.GetAllActivos(NHibernateManager.GetInstance().SessionInicioAplicacion);
 }
예제 #3
0
 protected override void OnResultExecuted(ResultExecutedContext filterContext)
 {
     // -- Cierro la sesion abierta
     NHibernateManager.GetInstance().CloseSession();
     base.OnResultExecuted(filterContext);
 }