Open joaopbnogueira opened 7 years ago
Thank you; this is looking good 👍
Did you accidentally check in UpgradeLog.htm
?
Oops, yes apparently I did. Please reject the pull request so that I can correct my branch and re-submit it. (Or is that unnecessary? Sorry but I'm more of a subversion guy!)
The
DefaultRouteDispatcher
was modified to check the controller for aRoute
attribute, similarly to what it does with actions.As per MSDN documentation
Route
attributes on actions take precedence overRoute
attributes on controllers.If no attribute is found, the
DefaultRouteDispatcher
works as before.A new test was created to check this feature (
DispatchReturnsResultWithRouterAttributeControllerRouteName
).