protected async Task ProcessCommand(LeaveEvento command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var evento = (await NonEventSourceRepository.GetEvent(command.Id)).ToDomainEvent(); evento.LeaveEvento(command.ParticipantId); await NonEventSourceRepository.LeaveEvent(evento.Id, command.ParticipantId); }