public static IQueryable<PetShop.Core.Data.Order> ByShipState(this IQueryable<PetShop.Core.Data.Order> queryable, string shipState, params string[] additionalValues) { var shipStateList = new List<string> { shipState }; if (additionalValues != null) shipStateList.AddRange(additionalValues); if (shipStateList.Count == 1) return queryable.ByShipState(shipStateList[0]); return queryable.ByShipState(shipStateList); }
public static IQueryable<Petshop.Data.Entities.Order> ByShipState(this IQueryable<Petshop.Data.Entities.Order> queryable, System.String shipState, params System.String[] additionalValues) { var shipStateList = new List<System.String> { shipState }; if (additionalValues != null) shipStateList.AddRange(additionalValues); if (shipStateList.Count == 1) return queryable.ByShipState(shipStateList[0]); return queryable.ByShipState(shipStateList); }