public ActionResult CheckCheatBidsByCandidateId(int candidateId, int configA = 500, int configB = 100, int configC = 100) { AntiCheat ac = new AntiCheat(configA, configB, configC); ac.CheckVoteByCandidate(candidateId); return(null); }
public ActionResult CheckCheatBids(int topCount, int configA = 500, int configB = 100, int configC = 100) { CandidateRepository cr = new CandidateRepository(); IEnumerable <int> topCandidateIds = cr.GetTopCandidates(topCount); AntiCheat ac = new AntiCheat(configA, configB, configC); foreach (int candidateId in topCandidateIds) { ac.CheckVoteByCandidate(candidateId); } return(null); }