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