Simpler use of attribute routing

This commit is contained in:
SteveSandersonMS
2016-03-08 18:15:09 +00:00
parent 11d4873164
commit b519e58fc5
4 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ namespace WebApplicationBasic.Controllers
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
[HttpGet, Route("[action]")]
[HttpGet("[action]")]
public IEnumerable<WeatherForecast> WeatherForecasts(int startDateIndex)
{
var rng = new Random();