AttributeRouting
AttributeRouting copied to clipboard
Localization + Multi route for single action = not working!
[Route("", ActionPrecedence = 1, TranslationKey = "customkey1")] [Route("", ActionPrecedence = 2, TranslationKey = "customkey2")] public ActionResult List(string p1, string p2, string p3) { }
How can I make Localization and multi route for single action work together? Thanks,
Just do it? Not sure what the problem is. If you provide AR with a TranslationProvider that yields translations for each of the keys you specified, then you'll have translated routes in the route table. If you need an orientation on the ins and outs, go here: http://attributerouting.net/#localizing-urls