예제 #1
0
        public int CountByCategory(Category category)
        {
            var builder = new BuilderProduct(DbSet).IsVisible().InCategory(category);

            return(builder.Count());
        }
예제 #2
0
        public int CountBySearch(string phrase)
        {
            var builder = new BuilderProduct(DbSet).IsVisible().SearchInNameOrDescriptionInFullDescription(phrase);

            return(builder.Count());
        }