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