Exemplo n.º 1
0
        public IViewComponentResult Invoke(string systemName)
        {
            var model = _topicViewModelService.TopicBlock(systemName);

            if (model == null)
            {
                return(Content(""));
            }
            return(View(model));
        }
Exemplo n.º 2
0
        public async Task <IViewComponentResult> InvokeAsync(string systemName)
        {
            var model = await Task.Run(() => _topicViewModelService.TopicBlock(systemName));

            if (model == null)
            {
                return(Content(""));
            }

            return(View(model));
        }