private static ArrayList GetProductList(int PortalId, ProductController pc, CategoryController cc, int CatID, string CultureCode, bool chkCascadeResults) { ArrayList prodLst; string CategoryList = ""; if (chkCascadeResults && CatID > 0) { var aryList = cc.GetCategories(PortalId, CultureCode); CategoryList = cc.GetSubCategoryList(aryList, CatID); CategoryList += CatID.ToString(); prodLst = pc.GetProductList(PortalId, CatID, CultureCode, "", false, false, "", false, 0, 1, 99999, false, false, CategoryList, false); } else { prodLst = pc.GetProductList(PortalId, CatID, CultureCode, false); } return prodLst; }