예제 #1
0
 public IQueryable <Game> FindNotHiddenNotOutcomeForUser(string userId, PlayerOutcome outcome)
 {
     return(this.GameSet
            .Where(g =>
                   g.Teams.Any(t =>
                               t.Players.Any(p =>
                                             p.UserId == userId &&
                                             !p.IsHidden &&
                                             p.Outcome != outcome))));
 }
예제 #2
0
 private static string FormatResult(string playerName, PlayerOutcome outcome)
 {
     return($"{playerName} {(outcome == PlayerOutcome.Win ? "beats the dealer" : "loses")}");
 }
예제 #3
0
 public IQueryable <Game> FindNotHiddenNotOutcomeForUser(string userId, PlayerOutcome outcome)
 {
     throw new NotImplementedException();
 }