Click here to Skip to main content
15,559,455 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

do you have some hints for MVC4 Web Api Routing default route.

I want to avoid (somehow) adding multiple routs for controllers in my webapi service.
So is it possible to add only default route
public static void Register(HttpConfiguration config)
        name: "MyRoute",
        routeTemplate: "api/{controller}/{action}"

and then, create methods decorated by [ActionName] to use multiple GET with different types and numbers of parameters.
To be clearer, i want to pull out rows from db (becouse of huge number of rows) with complex filter (input) parameters.

Any advise, hints .....

i tried but with no successs :-(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900