i have a search page which have 5 dropdownlist and two text-box and i have a gridview so basically it's a search page and user can select any of those ddl or text box and click on search to populate the gridview.
i have come-up with the below code and just thinking what is the best way or pattern to achieve what i want to achieve?
here is i want: FINDALL in the custom business object... any thoughts?
ps: do i need to add pass 7 parameters? because i have 7 controls on the page
public static List<People> GetData(int id)
{
List<People> peoples = new List<People>();
peoples.Add(new People(1, "Bart", "Long", "Mower", 10.00M, 18));
peoples.Add(new People(2, "Al", "Short", "Garbage Man", 18.00M, 23));
peoples.Add(new People(3, "Phil", "Short", "Construction", 23.50M, 22));
.....
.... ...
Go to the complete details ...