public ItemsWithTypesAndBrandsSpecification(ItemSpecParams1 itemParams) : base(x => (!itemParams.CategoryId.HasValue || x.CategoryId == itemParams.CategoryId)) { AddInclude(x => x.Category); AddInclude(x => x.ProductBrand); }
public ItemWithFiltersForCountSpecificication(ItemSpecParams1 itemParams) : base(x => (!itemParams.CategoryId.HasValue || x.CategoryId == itemParams.CategoryId) ) { }