public ActionResult Index(WelcomeParam param)
 {
     if (param != null)
     {
         HttpPreferencesManager manager = new HttpPreferencesManager(this);
         if (param.visual != null)
         {
             if (HttpPreferences.CheckVisualTheme(param.visual))
             {
                 HttpPreferences.Current.VisualTheme = param.visual;
             }
             base.Request.RemoveRouteValue("visual");
         }
         if (param.locationhotel != null)
         {
             if (HttpPreferences.CheckLocationHotel(param.locationhotel))
             {
                 HttpPreferences.Current.LocationHotel = param.locationhotel;
             }
             base.Request.RemoveRouteValue("locationhotel");
         }
         manager.Save(HttpPreferences.Current);
     }
     string[] strArray = Settings.GuestDefaultPage.Split(".,;/".ToCharArray());
     return this.RedirectToAction((strArray.Length > 1) ? strArray[1] : strArray[0], (strArray.Length > 1) ? strArray[0] : "guest", base.Request.QueryStringAsRouteValues());
 }
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            Controller controller = filterContext.Controller as Controller;

            if (controller != null)
            {
                HttpPreferences preferences = new HttpPreferencesManager(controller).LoadPreferences();
                if (preferences != null)
                {
                    HttpPreferences.Current = preferences;
                }
            }
        }