Files
using.cash/Logic/Governance/Ballots.cs
T

27 lines
793 B
C#

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<Ballots,Ballot,BasicBallot>
{
// 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<int,int> GetBallotsForPerson (Person person)
{
return SwarmDb.GetDatabaseForReading().GetBallotsForPerson(person.Identity);
}
}
}