public GenericCatalogController(IGenericCatalogService genericCatalogService,
     CatalogSettings catalogSettings,
     IPermissionService permissionService)
 {
     _genericCatalogService = genericCatalogService;
     _catalogSettings = catalogSettings;
     _permissionService = permissionService;
 }
 public GenericCatalogBuilder(IGenericCatalogService genericCatalogService,
     IWebHelper webHelper,
     CatalogSettings catalogSettings,
     UrlHelper urlHelper)
 {
     _modelList = new List<GenericCatalogPartsModel>();
     _genericCatalogService = genericCatalogService;
     _catalogSettings = catalogSettings;
     _urlHelper = urlHelper;
 }
Esempio n. 3
0
 public CatalogController(ICatalogService catalogService, 
     IGenericCatalogService genericCatalogService,
     ICatalogTemplateService catalogTemplateService,
     IPermissionService permissionService,
     CatalogSettings catalogSettings)
 {
     _catalogService = catalogService;
     _genericCatalogService = genericCatalogService;
     _catalogTemplateService = catalogTemplateService;
     _permissionService = permissionService;
     _catalogSettings = catalogSettings;
 }
 public SettingsController(ISettingService settingService,
     IPermissionService permissionService,
     IThemeProvider themeProvider,
     CatalogSettings catalogSettings,
     WebInformationSettings webInformationSettings,
     SeoSettings seoSettings,
     AnalysisNSocialNetworkSettings analysisNSocialNetworkSettings)
 {
     _permissionService = permissionService;
     _settingService = settingService;
     _themeProvider = themeProvider;
     _catalogSettings = catalogSettings;
     _webInformationSettings = webInformationSettings;
     _analysisNSocialNetworkSettings = analysisNSocialNetworkSettings;
     _seoSettings = seoSettings;
 }
        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);
        }