Exemplo n.º 1
0
        public void Handle(VoteForPostCasted @event)
        {
            // update the total number of up/down votes for the post
            int upVotes;
            int downVotes;

            _voteService.GetTotalVotesForPost(@event.PostId, out upVotes, out downVotes);
            _postService.UpdatePostVotes(@event.PostId, upVotes, downVotes);
        }