Suppose I have a resource in ASP.NET like so:
/api/cars
and I want to expose information about cars for sale. I want to expose it in two ways:
/api/cars?model=camry
/api/cars?make=toyota
I can implement the search for one of them, but not both at the same time since their signatures are identical. I'm using an ApiController in .NET 4.5: how can I implement both searches on the same resource?