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

            var model = new AnalysisNSocialNetworkSettingsModel
            {
                FacebookID = _analysisNSocialNetworkSettings.FacebookID ?? "000000000000000",
                GoogleAnalysis = _analysisNSocialNetworkSettings.GoogleAnalysis ?? "UA-00000000-0",
                FacebookInitCode = _analysisNSocialNetworkSettings.FacebookInitCode,
                GoogleInitCode = _analysisNSocialNetworkSettings.GoogleInitCode
            };

            return View(model);
        }
        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");
        }