Esempio n. 1
0
 protected BaseVotableViewModel(IVotable item, ObjectId userId)
 {
     Rating   = item.Rating;
     UserVote = GetUserVote(item, userId);
 }
Esempio n. 2
0
 private string GetVotersListName(VoteDirections voteDirections)
 {
     return(voteDirections == VoteDirections.Down
         ? nameof(IVotable.Downvoters)
         : nameof(IVotable.Upvoters));
 }