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

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

            return(View());
        }