public async Task <IViewComponentResult> InvokeAsync(int total, bool noticiasUrgentes = false) { var view = noticiasUrgentes ? "noticiasUrgentes" : "noticias"; var itens = _service.GetItens(total); return(View(view, itens)); }
public async Task <IViewComponentResult> InvokeAsync(int total, bool noticiasUrgentes = false) { var view = noticiasUrgentes ? "noticiasUrgentes" : "noticias"; var itens = _service.GetItens(total); return(View(view, itens)); }