Say I have a list of training centres like
List<TrainingCentre> tList = new List<TrainingCentre>()
{
new TrainingCentre{ Id=1, Name="XXXX", location="NY"},
new TrainingCentre{Id=2, Name="YYYY",location="OL"},
new TrainingCentre{Id=3,Name="ZZZ",location="DD"}
};
each training centre has exactly one location.
The requirement here is to allow the user to key in their preferred locations and display the result according their search keywords.
For example :
User may prefer two locations "NY" and "DD"
or single location like "NY".
How to write a where clause to take different locations at a time. Do i need string split or other techniques?