public async Task Apply(UserCreated evnt) { await _store.InsertAsync(new UserView { Id = evnt.UserId, Email = evnt.Email, }); }
public async Task Apply(TodoListCreated evnt) { await _store.InsertAsync(new TodoListView { Id = evnt.ListId, Title = evnt.Title, OwnerId = evnt.OwnerId, Items = new Dictionary <string, TodoListItem>() }); }