public static int[] GetBadgeRewardArray(Statistic stat)
{
using (SqlConnection connection = ConnectionManager.GetConnection())
{
var data = new ActivEarthDataProvidersDataContext(connection);
return (from c in data.BadgeConstantsDataProviders
where c.statistic == (byte)stat
select c.reward).ToArray();
}
}