public static BrandList LoadBrands() { DataTable dataTable = DBAccessor.QueryBrands(); if (dataTable == null) { return(null); } BrandList brandList = new BrandList(); foreach (DataRow dataRow in dataTable.Rows) { Brand brand = LoadBrand(dataRow); brandList.AddBrand(brand); } return(brandList); }