Beispiel #1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var notifications = await Task.FromResult(_notificator.GetNotification());

            notifications.ForEach(c => ViewData.ModelState.AddModelError(string.Empty, c.Message));
            return(View());
        }