예제 #1
0
        public async Task Handle(AuthorUpdated @event)
        {
            List <BookId> bookIds = await bookFacade.GetBookIdsByAuthorFullNameAsync(@event.oldName);

            foreach (var id in bookIds)
            {
                await repository.ModifyAsync(b => b.ChangeAuthor(@event.newName, @event.AuthorId), id);
            }
        }