using System; using System.Collections.Generic; using System.Text; using Swarmops.Logic.Swarm; using Swarmops.Logic.Structure; using Swarmops.Basic.Types; using Swarmops.Database; using Swarmops.Logic.Support; namespace Swarmops.Logic.Governance { public class Ballots: PluralBase { // nothing much here public static Ballots ForElection (Election election) { return FromArray(SwarmDb.GetDatabaseForReading().GetBallots(election, Organization.PPSE)); // HACK HACK HACK -- PPSE hardcoded } public static Dictionary GetBallotsForPerson (Person person) { return SwarmDb.GetDatabaseForReading().GetBallotsForPerson(person.Identity); } } }