Files
2014-12-05 22:12:51 +01:00

26 lines
866 B
C#

using System.Collections.Generic;
using Swarmops.Database;
namespace Swarmops.Logic.Support
{
/// <summary>
/// This class contains one-off optimizations that don't fit anywhere.
/// </summary>
public class Optimizations
{
public static Dictionary<int, bool> GetPeopleWhoDeclineLocalMail (int[] personIds)
{
return SwarmDb.GetDatabaseForReading().GetPeopleWhoDeclineLocalMail (personIds);
}
public static Dictionary<int, int> GetGeographyVoterCounts()
{
return SwarmDb.GetDatabaseForReading().GetGeographyVoterCounts();
}
public static Dictionary<int, int> GetInternalPollVoteCountsPerGeography (int pollId)
{
return SwarmDb.GetDatabaseForReading().GetInternalPollVoteCountsPerGeography (pollId);
}
}
}