Esempio n. 1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await _catalogViewModelService.PrepareHomepageCategory();

            if (!model.Any())
            {
                return(Content(""));
            }
            return(View(model));
        }
Esempio n. 2
0
        public IViewComponentResult Invoke()
        {
            var model = _catalogViewModelService.PrepareHomepageCategory();

            if (!model.Any())
            {
                return(Content(""));
            }
            return(View(model));
        }