Beispiel #1
0
 public IEnumerable <PuttHistory> GetPuttByGreenCondition(GreenSpeedEnum speed, GreenHardnessEnum hardness)
 {
     return(_repository.GetPuttByGreenCondition(speed, hardness));
 }
Beispiel #2
0
 public static IEnumerable <PuttHistory> GetPuttByGreenCondition(this IRepository <PuttHistory> repository, GreenSpeedEnum speed, GreenHardnessEnum hardness)
 {
     return(repository.Queryable()
            .Where(x => x.GreenSpeed == speed && x.GreenHardness == hardness)
            .AsEnumerable());
 }
Beispiel #3
0
 public PuttHistory GetPuttByDistanceElevationGreenCondition(int distance, int elevation, GreenSpeedEnum speed, GreenHardnessEnum hardness)
 {
     return(_repository.GetPuttByDistanceElevationGreenCondition(distance, elevation, speed, hardness));
 }
Beispiel #4
0
 public static PuttHistory GetPuttByDistanceElevationGreenCondition(this IRepository <PuttHistory> repository, int distance, int elevation, GreenSpeedEnum speed, GreenHardnessEnum hardness)
 {
     return(repository.Queryable().FirstOrDefault(p => p.Distance == distance && p.Elevation == elevation && p.GreenSpeed == speed && p.GreenHardness == hardness));
 }