I am trying to search the product name using the given keyword but my boilerplate throw me error
I tried
protected override IQueryable<Product> CreateFilteredQuery(PagedProductResultRequestDto input)
{
return base.CreateFilteredQuery(input).
WhereIf(input.Keyword.IsNullOrWhiteSpace(), x => x.Name.Contains(input.Keyword));
}
gave me error
Cannot implicitly convert type ‘System.Linq.IQueryable’ to ‘System.Collections.Generic.IEnumerable’. An explicit conversion exists (are you missing a cast?)