public async Task <IViewComponentResult> InvokeAsync()
        {
            var notificacoes = await Task.FromResult(_notificacao.ObterNotificacoes());

            notificacoes.ForEach(n => ViewData.ModelState.AddModelError(string.Empty, n.Valor));

            return(View());
        }
 protected IEnumerable <string> ObterMensagensDeErro()
 {
     return(_notificacao.ObterNotificacoes().Select(m => m.Valor).ToList());
 }