public async Task Handle(DislikeDeleted message) { var details = await _read.Get <RetrospectiveDetails>(message.RetrospectiveId); var item = details.Dislikes.FirstOrDefault(l => l.Id == message.DislikeIdentifier); if (item != null) { details.Dislikes.Remove(item); await _save.Put(details); } }
private void Apply(DislikeDeleted e) { var dislike = Dislikes.First(l => l.Id == e.DislikeIdentifier); Dislikes.Remove(dislike); }