public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await _commonViewModelService.PrepareStoreSelector();

            if (model == null || model.AvailableStores.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }
Beispiel #2
0
        public IViewComponentResult Invoke()
        {
            var model = _commonViewModelService.PrepareStoreSelector();

            if (model == null || model.AvailableStores.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }