Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: [MvcAttributeRouting] NonAction doesn't work with MVC attribute routing [1268]

$
0
0
Attribute routing should not be able to select a NonAction route.
porting #1220 (which fixed this in WebAPI) to MVC.


Comments: Here's an example test case: ``` [Route("bar/{action}")] public class AttrHome2Controller : Controller { public ContentResult Foo() { return new ContentResult { Content = "Bong!" }; } [NonAction] // Works on Rotue action on controller public ContentResult Nope() { return new ContentResult { Content = "Bong!" }; } } ``` bar/Foo should work. bar/Nope should not.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>