public IQueryable <Product> FindByProductLineAndClass(ProductLineEnum productLine, ProductClassEnum productClass) { string pls = Enum.GetName(typeof(ProductLineEnum), productLine); string pcs = Enum.GetName(typeof(ProductClassEnum), productClass); return(Container.Instances <Product>().Where(p => p.ProductLine == pls && p.Class == pcs)); }
public static IQueryable <Product> FindByProductLineAndClass(ProductLineEnum productLine, ProductClassEnum productClass, IQueryable <Product> products) { string pls = Enum.GetName(typeof(ProductLineEnum), productLine); string pcs = Enum.GetName(typeof(ProductClassEnum), productClass); return(products.Where(p => p.ProductLine == pls && p.Class == pcs)); }
public IQueryable<Product> FindByProductLineAndClass(ProductLineEnum productLine, ProductClassEnum productClass) { string pls = Enum.GetName(typeof (ProductLineEnum), productLine); string pcs = Enum.GetName(typeof (ProductClassEnum), productClass); return Container.Instances<Product>().Where(p => p.ProductLine == pls && p.Class == pcs); }