I have three fields in a form on the view:
[Textfield] : Name
[Dropdown] : Sector
[Dropdown] : Country
My requirement is to filter the results via these three keywords in the controller method, and also order the result first by received date and then by name.
There are so many possibilities, eg: if Name
matches and Sector
matches do filtering etc.
I can do it with if else
or with any other cumbersome way, but how can I do this in LINQ in one statement. I need to return a list.