public async Task <IViewComponentResult> InvokeAsync()
        {
            SettingHelper settingHelper = new SettingHelper(_memoryCache);
            string        code          = await settingHelper.GetCachedSettingValueAsync(SettingKeys.GoogleAnalyticsCode);

            code = HttpUtility.HtmlDecode(code);
            ViewData["GoogleAnalytics"] = code;
            return(View());
        }
        public async Task <IActionResult> Index()
        {
            SettingHelper settingHelper = new SettingHelper(_memoryCache);
            string        code          = await settingHelper.GetCachedSettingValueAsync(SettingKeys.GoogleAnalyticsCode);

            code = HttpUtility.HtmlDecode(code);
            SettingKeyValue settingKeyValue = new SettingKeyValue()
            {
                Key   = SettingKeys.GoogleAnalyticsCode,
                Value = code
            };

            return(View(settingKeyValue));
        }