private bool ValidarComando(BaseCommand message) { if (message.EhValido()) { return(true); } foreach (var error in message.ValidationResult.Errors) { _mediator.Publish(new DomainNotification(message.MessageType, error.ErrorMessage)); } return(false); }