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 AnalysisNSocialNetwork(AnalysisNSocialNetworkSettingsModel model)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))
                return AccessDeniedView();

            var entity = new AnalysisNSocialNetworkSettings
            {
                FacebookID = model.FacebookID,
                FacebookInitCode = model.FacebookInitCode,
                GoogleAnalysis = model.GoogleAnalysis,
                GoogleInitCode = model.GoogleInitCode
            };

            _settingService.SaveSetting(entity);

            return RedirectToAction("AnalysisNSocialNetwork");
        }
 public AnalysisNSocialNetworkBuilder(AnalysisNSocialNetworkSettings settings)
 {
     _settings = settings;
 }