1
Reply

Search problem

Hareesh Bollepalli

Hareesh Bollepalli

May 25 2015 7:41 AM
327

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 (1)