This project is read-only.
2
Vote

Add support prioritise controller routes

description

Hi
Why in new version MVC, route not have prioritise? Before have prioritise.
Example, I have 2 Controllers

NewsController
[Route("~/News", Order = 2)]
[Route("~/News/Page/{page}", Order = 1)]
public async Task<ActionResult> Index(int page = 1)
And ContentsController
 [Route("~/{seoTitle}", Order = 10)]
 public async Task<ActionResult> Show(string seoTitle)
If try go to page News, I get error
Multiple controller types were found that match the URL. This can happen if attribute routes on multiple controllers match the requested URL.

The request has found the following matching controller types:

comments