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); }
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); }