private void GetProductCategories() { if (IsHomePageMenu) { rptMenu.DataSource = productCategoryManager.GetHomePageProductCategories(BranchId); } else { rptMenu.DataSource = productCategoryManager.GetAllProductCategories(BranchId, true); } rptMenu.DataBind(); }
public static IEnumerable <ProductCategories> GetProductCategories() { ProductCategoryManager _categoryManager = new ProductCategoryManager(); return(_categoryManager.GetAllProductCategories(1, false)); }
public IList <ProductCategory> GetAllProductCategories() { var productCategoryManager = new ProductCategoryManager(); return(productCategoryManager.GetAllProductCategories().Select(p => p.ToServiceProductCategory()).ToList()); }
private void GetProductCategories() { rptMenu1.DataSource = productCategoryManager.GetAllProductCategories(BranchId, true); rptMenu1.DataBind(); }