Askme.Domain.Votes.GetTotalVotes C# (CSharp) Method

GetTotalVotes() public method

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