public IActionResult NotFoundResponse() { if (DomainNotification.HasNotifications()) { DomainNotification.Dispose(); } DomainNotification.Handle(new Notification("Recurso não encontrado")); return(new NotFoundObjectResult(EnvelopResult.Fail(DomainNotification.Notify()))); }