Exemple #1
0
        public List<Brand> GetBrands(string categoryUrl, bool includeChildrenCategories = false)
        {
            CategoryDL categoryDL = new CategoryDL();
            Category category = categoryDL.GetCategoryByUrl(categoryUrl);

            BrandDL brandDL = new BrandDL();
            return brandDL.GetBrands(category.CategoryID, includeChildrenCategories);
        }
Exemple #2
0
        public List<Brand> GetBrands(string categoryUrl)
        {
            CategoryDL categoryDL = new CategoryDL();
            Category category = categoryDL.GetCategoryByUrl(categoryUrl);

            BrandDL brandDL = new BrandDL();
            return category != null ? brandDL.GetBrands(category.CategoryID) : null;
        }
Exemple #3
0
        public List<Brand> GetBrands(bool allSelection)
        {
            BrandDL brandDL = new BrandDL();
            List<Brand> brands = brandDL.GetBrands();

            if (allSelection && brands != null)
                brands.Insert(0, new Brand(-1, "Sve"));

            return brands;
        }