public int GetTotalVotes() { int totalVotes = 0; foreach (Vote vote in votes) { totalVotes += vote.Value; } return totalVotes; }