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

            var dislike = details.Dislikes.FirstOrDefault(l => l.Id == message.DislikeIdentifier);

            if (dislike != null)
            {
                dislike.Description = message.Description;
                await _save.Put(details);
            }
        }
Exemplo n.º 2
0
 private void Apply(DislikeUpdated e)
 {
     Dislikes.First(dl => dl.Id == e.DislikeIdentifier).Description = e.Description;
 }