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