public Task <CareerPlayerStatistic> Get(int associationID, int playerID, short seasonID, int competitionID, int competitionStageID,
                                         GameCalculationEngines gameCalculationEngineID)
 {
     return(this.SessionQuery()
            .Where(x => x.Party.ID == playerID &&
                   x.Association.ID == associationID &&
                   x.CompetitionID == competitionID &&
                   x.CompetitionStageID == competitionStageID &&
                   x.GameCalculationEngineID == gameCalculationEngineID)
            .Take(1)
            .SingleOrDefaultAsync());
 }
Exemple #2
0
        public IGameCalculationEngine Create(GameCalculationEngines calculationEngine)
        {
            switch (calculationEngine)
            {
            case GameCalculationEngines.Game15Up:
                return(_game15UpInstance);

            case GameCalculationEngines.Game21Up:
                return(_game21UpInstance);

            default:
                throw new ArgumentOutOfRangeException("calculationEngine");
            }
        }