public async Task Handle(ActionItemDeleted message)
        {
            var details = await _read.Get <RetrospectiveDetails>(message.RetrospectiveId);

            var item = details.ActionItems.FirstOrDefault(l => l.Id == message.ActionItemIdentifier);

            if (item != null)
            {
                details.ActionItems.Remove(item);
                await _save.Put(details);
            }
        }
Example #2
0
        private void Apply(ActionItemDeleted e)
        {
            var actionItem = ActionItems.First(l => l.Id == e.ActionItemIdentifier);

            ActionItems.Remove(actionItem);
        }