I have a code segment like the following:
var results = business.Where(b => b.Description.ToLower().Contains(request.ServiceName.ToLower()));
var bb = results.Where(r => !r.Zip.Contains('-'));
When I ran this I get an error message in the title. My queries return a complex type that I have defined, and one of the properties' of that complex type is:
public string Zip { get; set; }
I want to exclude all the entries that does not include dash in the zip part.