public Task Handle(RemoverDiretoriaCommand message, CancellationToken cancellationToken)
        {
            if (!message.IsValid())
            {
                NotifyValidationErrors(message);
                return(Task.CompletedTask);
            }

            _diretoriaRepository.Remove(message.Id);

            if (Commit())
            {
                Bus.RaiseEvent(new DiretoriaRemovedEvent(message.Id));
                return(Task.CompletedTask);
            }

            return(Task.CompletedTask);
        }