public static List <ProductBrandInfo> ReadList(int productClassID) { var _pro = ProductBLL.SearchList(new ProductSearchInfo { ClassId = "|" + productClassID + "|" }); //var _class = ProductClassBLL.Read(productClassID); //var _type = ProductTypeBLL.Read(_class.ProductTypeId); List <ProductBrandInfo> _band = new List <ProductBrandInfo>(); //if (!string.IsNullOrEmpty(_type.BrandIds)) //{ // _band = ProductBrandBLL.ReadList(Array.ConvertAll<string, int>(_type.BrandIds.Split(';'), k => Convert.ToInt32(k))); //} _band = ProductBrandBLL.ReadList(_pro.Select(k => k.BrandId).Distinct().ToArray()); return(_band); }