public async Task <IViewComponentResult> InvokeAsync()
        {
            var _tags = await TagService.GetAsync();

            var view = new TagViewContainer
            {
                Tags = _tags.Take(5)
            };

            return(View(view));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var _tags = await TagService.GetAsync();

            var view = new TagViewContainer
            {
                Tags = _tags
            };

            return(View(view));
        }