Пример #1
0
        public async Task <IViewComponentResult> InvokeAsync(int total, bool noticiasUrgentes = false)
        {
            var view  = noticiasUrgentes ? "noticiasUrgentes" : "noticias";
            var itens = _service.GetItens(total);

            return(View(view, itens));
        }