public async Task <IViewComponentResult> InvokeAsync() { var notificacoes = await Task.FromResult(_notifier.GetAllNotifications()); notificacoes.ForEach(c => ViewData.ModelState.AddModelError(string.Empty, c.Message)); return(View()); }