protected async Task ProcessCommand(CreateEvento command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var engazeEvent = new Evento(command.Id, command.EventoContract); await NonEventSourceRepository.InsertAsync(engazeEvent); }
protected async Task ProcessCommand(CreateEvento command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var engazeEvent = new Evento(command.Id, command.EventoContract); await NonEventSourceRepository.InsertAsync(engazeEvent); await notificationManager.NotifyParticipantsAsync((Notification.EventWithUserIds) command.EventoContract, Engaze.Core.DataContract.OccuredEventType.EventoCreated); }