I\'m trying to configure routing in my MVC4 WebAPI project.
I want to be able to search for products based on their name or their type like so:
/api/pr
Are you sure that the controllers are ok? I mean, the name of the params.
public string GetProductsByName(string name) { return "Requested name: " + name; } public string GetProductsByType(string type) { return "Requested type: " + type; }