public void Handle(ChecklistRemoved message) { if (message.CardId != _cardId) { return; } var found = Checklists.Where(x => x.Id == message.ChecklistId).ToArray(); foreach (var list in found) { Checklists.Remove(list); } PublishAggregations(); }
public void Handle(ChecklistRemoved message) { Analytics.TagEvent("Removed_Checklist"); Handle(api => api.Cards.RemoveChecklist(new CardId(message.CardId), new ChecklistId(message.ChecklistId))); }