void CreateBetterlist(List <string> betters, ISubmittedBets sb, IResults actual) { foreach (var better in betters) { var score = new ScoringSystem(sb.GetSingleBet(better), actual); var bet = new Better() { Name = better, Score = score.GetTotal() }; var achievements = new AchievementSystem(sb.GetSingleBet(better), actual); bet.Achievements = achievements.Achievements; bet.RowClass = "normal"; Betters.Add(bet); } }
void CreateBetterlist(List <string> betters, ISubmittedBets sb, IResultCollection rc) { foreach (var better in betters) { var score = new ScoringSystem(sb.GetSingleBet(better), rc.Current); var oldscore = new ScoringSystem(sb.GetSingleBet(better), rc.Previous); var bet = new Better() { Name = better, Score = score.GetTotal(), OldScore = oldscore.GetTotal() }; var achievements = new AchievementSystem(sb.GetSingleBet(better), rc.Current); bet.Achievements = achievements.Achievements; bet.RowClass = "normal"; Betters.Add(bet); } }
public BetterPageModule(ITournament tournament, ISubmittedBets bets, IResultCollection rc) { Get["/{better}"] = _ => { // disable once ConvertToLambdaExpression return(View["betterpage.sshtml", new BetterPageViewModel(tournament, bets.GetSingleBet(_.better), rc.Current)]); }; }