carList = allCars.Where(a => a.CarCategory.Any(a => categoryIds.Contains(a.CarId))).ToList(); && allCars.Where(b => b.BrandCa