コード例 #1
0
        public IViewComponentResult Invoke()
        {
            if (!_storeInformationSettings.AllowCustomerToSelectTheme)
            {
                return(Content(""));
            }
            var model = _commonViewModelService.PrepareStoreThemeSelector();

            return(View(model));
        }
コード例 #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            if (!_storeInformationSettings.AllowCustomerToSelectTheme)
            {
                return(Content(""));
            }
            var model = await Task.Run(() => _commonViewModelService.PrepareStoreThemeSelector());

            return(View(model));
        }