public IEnumerable <Laptop> SearchLaptops(string txtSearch) { var laptops = laptopRepository.GetMany(laps => laps.LaptopName.Contains(txtSearch) || laps.Brand.BrandName.Contains(txtSearch)); return(laptops); }