Beispiel #1
0
        public async Task HandleAsync(NotificationCreatedEvent @event)
        {
            var annexCollection = new AnnexCollection(@event.Notification.Id);

            annexCollectionRepository.Add(annexCollection);

            await context.SaveChangesAsync();
        }
Beispiel #2
0
 public void Add(AnnexCollection annexCollection)
 {
     context.AnnexCollections.Add(annexCollection);
 }