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