public ActionResult Catalog()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
                return AccessDeniedView();

            var model = new CatalogSettingsModel
            {
                AllowAutoUpload = _catalogSettings.AllowAutoUpload,
                AvatarDimension = _catalogSettings.AvatarDimension,
                AllowUploadMultiFile = _catalogSettings.AllowUploadMultiFile,
                DefaultAvatar = _catalogSettings.DefaultAvatar,
                DefaultCatalogItemsOnPage = _catalogSettings.DefaultCatalogItemsOnPage,
                DefaultGenericCatalogIcon = _catalogSettings.DefaultGenericCatalogIcon,
                DefaultGenericCatalogItemsOnPage = _catalogSettings.DefaultGenericCatalogItemsOnPage,
                DefaultSizeOnMenu = _catalogSettings.DefaultSizeOnMenu,
                GenericCatalogIconPath = _catalogSettings.GenericCatalogIconPath,
                IconDimension = _catalogSettings.IconDimension,
                ShowShareButton = _catalogSettings.ShowShareButton
            };

            return View(model);
        }
        public ActionResult Catalog(CatalogSettingsModel model)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
                return AccessDeniedView();

            var entity = new CatalogSettings
            {
                AllowAutoUpload = model.AllowAutoUpload,
                AvatarDimension = model.AvatarDimension,
                AllowUploadMultiFile = model.AllowUploadMultiFile,
                DefaultAvatar = model.DefaultAvatar,
                DefaultCatalogItemsOnPage = model.DefaultCatalogItemsOnPage,
                DefaultGenericCatalogIcon = model.DefaultGenericCatalogIcon,
                DefaultGenericCatalogItemsOnPage = model.DefaultGenericCatalogItemsOnPage,
                DefaultSizeOnMenu = model.DefaultSizeOnMenu,
                GenericCatalogIconPath = model.GenericCatalogIconPath,
                IconDimension = model.IconDimension,
                ShowShareButton = model.ShowShareButton
            };

            _settingService.SaveSetting(entity);

            return View(model);
        }