public IEnumerable <ShotHistory> GetShotByWindConditions(int distance, WindDirectionEnum windDirection, WindConditionEnum windCondition) { return(_repository.GetShotByDistanceAndWindConditions(distance, windDirection, windCondition)); }
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()); }