コード例 #1
0
ファイル: Ballots.cs プロジェクト: JeffreyQ1/Swarmops
        // 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
ファイル: Ballot.cs プロジェクト: SwarmCorp/Swarmops
 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));
 }