public override List <Product> Search(List <Product> data)
        {
            List <Product> result = data.Where(x => x.Description.ToLower().Contains(Description.ToLower())).ToList();

            if (AdvancedSearchComponent != null)
            {
                result = AdvancedSearchComponent.Search(result);
            }

            return(result);
        }
Пример #2
0
        public override List <Product> Search(List <Product> data)
        {
            List <Product> result = data.Where(x => x.ProductCategory.CategoryName.ToLower().Contains(CategoryName.ToLower())).ToList();

            if (AdvancedSearchComponent != null)
            {
                result = AdvancedSearchComponent.Search(result);
            }

            return(result);
        }