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)))); }
private static string FormatResult(string playerName, PlayerOutcome outcome) { return($"{playerName} {(outcome == PlayerOutcome.Win ? "beats the dealer" : "loses")}"); }
public IQueryable <Game> FindNotHiddenNotOutcomeForUser(string userId, PlayerOutcome outcome) { throw new NotImplementedException(); }