public ActionResult Index(PageSettingsInfo model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    // the first two checks in the IF statement below are necessary for when the module is first added to a page
                    if (model != null && model.NewSetting != null && !string.IsNullOrEmpty(model.NewSetting.Key) &&
                        !string.IsNullOrEmpty(model.NewSetting.Value))
                    {
                        var newKey =
                            PortalSecurity.Instance.InputFilter(model.NewSetting.Key.Trim(),
                                                                PortalSecurity.FilterFlag.NoMarkup);
                        var newValue =
                            PortalSecurity.Instance.InputFilter(model.NewSetting.Value.Trim(),
                                                                PortalSecurity.FilterFlag.NoMarkup);

                        TabController.Instance.UpdateTabSetting(ActivePage.TabID, newKey, newValue);
                    }
                }
            }
            catch (Exception ex)
            {
                LogError(ex);
                throw;
            }

            return(RedirectToDefaultRoute());
        }
        public ActionResult Index()
        {
            try
            {
                var model = new PageSettingsInfo {
                    PageSettings = SortedPageSettings, NewSetting = new SettingNvp()
                };

                return(View(model));
            }
            catch (Exception ex)
            {
                LogError(ex);
                throw;
            }
        }