Exemple #1
0
 public bool UserAlreadyVoted(string username)
 {
     return(UsernamesOfPeopleWhoVoted.Split(new char[] { ',' }).Contains(username));
 }
Exemple #2
0
 public void RememberVoter(string username)
 {
     UsernamesOfPeopleWhoVoted = UsernamesOfPeopleWhoVoted.Equals("")
         ? username : UsernamesOfPeopleWhoVoted + "," + username;
 }