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