Ejemplo n.º 1
0
        public IViewComponentResult Invoke()
        {
            if (!_storeInformationSettings.AllowCustomerToSelectTheme)
            {
                return(Content(""));
            }
            var model = _commonViewModelService.PrepareStoreThemeSelector();

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

            return(View(model));
        }