With the new MVC Attribute routing, I know that you can assign multiple Route attributes to a single ActionResult , but I'm looking for a way to do the same at the RoutePrefix level. I have a controller that in each action should be accessible along three routes:
/Games/{Title}/Characters/{Route} /Books/{Title}/Characters/{Route} /Cinema/{Title}/Characters/{Route}
I tried to put three separate RoutePrefix attributes, but I get a Deuplace RoutePrefix attribute error. If I try to use a comma separated list, I get the Best override method for does not contain a constructor that takes 3 arguments .
Is it possible to configure RoutePrefix so that there are three routes for my controller?
source share