Example #1
0
 public IEnumerable <ShotHistory> GetShotByWindConditions(int distance, WindDirectionEnum windDirection, WindConditionEnum windCondition)
 {
     return(_repository.GetShotByDistanceAndWindConditions(distance, windDirection, windCondition));
 }
Example #2
0
 public static IEnumerable <ShotHistory> GetShotByDistanceAndWindConditions(this IRepository <ShotHistory> repository, int distance, WindDirectionEnum windDirection, WindConditionEnum windCondition)
 {
     return(repository.Queryable()
            .Where(x => x.Distance == distance && x.WindDirection == windDirection && x.WindCondition == windCondition)
            .AsEnumerable());
 }