Пример #1
0
 private void GetProductCategories()
 {
     if (IsHomePageMenu)
     {
         rptMenu.DataSource = productCategoryManager.GetHomePageProductCategories(BranchId);
     }
     else
     {
         rptMenu.DataSource = productCategoryManager.GetAllProductCategories(BranchId, true);
     }
     rptMenu.DataBind();
 }
Пример #2
0
        public static IEnumerable <ProductCategories> GetProductCategories()
        {
            ProductCategoryManager _categoryManager = new ProductCategoryManager();

            return(_categoryManager.GetAllProductCategories(1, false));
        }
Пример #3
0
        public IList <ProductCategory> GetAllProductCategories()
        {
            var productCategoryManager = new ProductCategoryManager();

            return(productCategoryManager.GetAllProductCategories().Select(p => p.ToServiceProductCategory()).ToList());
        }
Пример #4
0
 private void GetProductCategories()
 {
     rptMenu1.DataSource = productCategoryManager.GetAllProductCategories(BranchId, true);
     rptMenu1.DataBind();
 }