I'm fairly new to ASP.NET MVC4 and I have a search/filter form where you can filter on multiple parameters
So this is my controller
public ActionResult Index(string page, int? neighborhoodID, int? accommodationType) {
...
}
I was thinking. I'm using data annotations and validation for my login/registering by using the Model class.
Is there a way I could filter values using the Model class?
Now I just look at the requested parameters and use them in my linq query to get the filtered records.