Exemple #1
0
 public Vote(User voter, Option option)
 {
     VoterId = voter.Id;
     Voter = voter;
     OptionId = OptionId;
     Option = option;
 }
 public OptionViewModel(Option option)
 {
     Key = option.Key;
     Value = option.Value;
     NumberOfVotes = option.Votes.Count;
 }