private void GetProductCategories() { if (IsHomePageMenu) { rptMenu.DataSource = productCategoryManager.GetHomePageProductCategories(BranchId); } else { rptMenu.DataSource = productCategoryManager.GetAllProductCategories(BranchId, true); } rptMenu.DataBind(); }