예제 #1
0
        // nothing much here

        public static Ballots ForElection(Election election)
        {
            return(FromArray(SwarmDb.GetDatabaseForReading().GetBallots(election, Organization.PPSE))); // HACK HACK HACK -- PPSE hardcoded
        }
예제 #2
0
        // nothing much here


        public static Ballots ForElection(Election election, Organization organization)
        {
            return(FromArray(SwarmDb.GetDatabaseForReading().GetBallots(election, organization)));
        }
예제 #3
0
 public static Ballot Create(Election election, Organization organization, Geography geography, string name, int ballotCount, string deliveryAddress)
 {
     return(FromIdentity(SwarmDb.GetDatabaseForWriting().CreateBallot(election.Identity, name, organization.Identity, geography.Identity, ballotCount, deliveryAddress)));
 }
예제 #4
0
 public static Ballot Create (Election election, Organization organization, Geography geography, string name, int ballotCount, string deliveryAddress)
 {
     return FromIdentity(SwarmDb.GetDatabaseForWriting().CreateBallot(election.Identity, name, organization.Identity, geography.Identity, ballotCount, deliveryAddress));
 }