public IQueryable GetProducts([QueryString("q")]string keyword) { IQueryable query = _db.Products; if (!String.IsNullOrWhiteSpace(keyword)) { query = query.Where(p => p.ProductName.Contains(keyword)); } return query; }