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

Created Unassigned: MVC routing fails when explicit verb attribute is used on an action [1265]

$
0
0
__NOTE__: this is a regression after yesterday's changes to MVC attribute routing which made some
changes affecting conventional routing too.

Following works:

```
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
```

but the following doesn't resulting in 404 Not Found:

```
public class HomeController : Controller
{
[HttpGet] //<---------------------------Note this
public ActionResult Index()
{
return View();
}
}
```


Viewing all articles
Browse latest Browse all 7215

Trending Articles



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