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

Closed Unassigned: Attribute routing should support {action} in route for DRY [1671]

$
0
0

We should be allosed to use the {action} token when specifying routes so we do not have to repeat the method name everywhere...

Current:

[Route("SomeSuperAction/{id:int}")]
public virtual ActionResult SomeSuperAction(int id)
{

Proposed:
[Route("{action}/{id:int}")]
public virtual ActionResult SomeSuperAction(int id)
{


Viewing all articles
Browse latest Browse all 7215

Trending Articles



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