3
Reply

Search Problem

Hareesh Bollepalli

Hareesh Bollepalli

May 25 2015 2:31 AM
466

Here I search Manufacturer

My problem is Manufacturer is Tatavista. But in my database Tatavista and tatvista both are present.

if i search with tatavista i get both results.

 if search with tatavista i need to get tatavista only.

  if search with Tatavista i need to get Tatavista only 

This is my code:

viewModel = CarDb.cars.Where(g => g.Manufacturer == Manufacturer || string.IsNullOrEmpty(Manufacturer.Trim().tolower().toupper()))


Answers (3)