Пример #1
0
 public async Task Apply(ListItemAdded evnt)
 {
     await _store.FindOneAndUpdateAsync(
         evnt.ListId,
         x => x.Items.Add(evnt.ItemId, new TodoListItem
         {
             Id = evnt.ItemId,
             Description = evnt.Description,
             Status = TodoItemStatus.Added
         })
     );
 }
Пример #2
0
 public void On(ListItemAdded evnt)
 {
     ItemsIds.Add(evnt.ItemId);
 }