public async Task <IViewComponentResult> InvokeAsync() { var notifications = await Task.FromResult(_notifications.Notifications()); notifications.ForEach(n => ViewData.ModelState.AddModelError(string.Empty, n.Value)); return(View()); }