I have two routes that are satisfying two different urls. how can i remove ambiguity?
Depending on which is first in the list is which is being picked up.
downloadFile and isEdit as both nullable bool.
context.MapRoute("Asset_GetImage", "Admin/{controller}/{action}/{assetId}/{downloadFile}");
context.MapRoute("News_Read", "Admin/{controller}/{action}/{newsId}/{isEdit}");
thanks
you could make the routes more specific.
For example, specify the
{controller}for each of these:you just need to make sure the controller default is added.
as an example from one of my apps:
{controller}and{action}aren’t in the route but the defaults are still set so it knows what to do with it