Example #1
0
 public bool CastVote(Dem2Model.Voting onWhat, Vote vote)
 {
     bool voteRegistered = onWhat.RegisterVote(vote);
     if (voteRegistered)
     {
         VoteCast(this, onWhat, vote);
     }
     return voteRegistered;
 }
Example #2
0
 public override bool Unsubscribe(Dem2Model.User theUser)
 {
     var ret = base.Unsubscribe(theUser);
     if (subscribedUsers.Count == 0)
     {
         Delete();
     }
     return ret;
 }