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

            var actionItem = details.ActionItems.First(c => c.Id == message.ActionItemIdentifier);

            actionItem.ToggleVote(message.ParticipantId);
            await _save.Put(details);
        }
Esempio n. 2
0
        private void Apply(ActionItemVoteToggled e)
        {
            var actionItem = ActionItems.First(l => l.Id == e.ActionItemIdentifier);

            actionItem.ToggleVote(e.ParticipantId);
        }