From b519e58fc5218d435e8cd840c116f66e5dea15b1 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Tue, 8 Mar 2016 18:15:09 +0000 Subject: [PATCH] Simpler use of attribute routing --- templates/Angular2Spa/Controllers/SampleDataController.cs | 2 +- templates/KnockoutSpa/Controllers/SampleDataController.cs | 2 +- templates/ReactReduxSpa/Controllers/SampleDataController.cs | 2 +- templates/ReactSpa/Controllers/SampleDataController.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/Angular2Spa/Controllers/SampleDataController.cs b/templates/Angular2Spa/Controllers/SampleDataController.cs index 1eb3835..45fb312 100644 --- a/templates/Angular2Spa/Controllers/SampleDataController.cs +++ b/templates/Angular2Spa/Controllers/SampleDataController.cs @@ -14,7 +14,7 @@ namespace WebApplicationBasic.Controllers "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - [HttpGet, Route("[action]")] + [HttpGet("[action]")] public IEnumerable WeatherForecasts() { var rng = new Random(); diff --git a/templates/KnockoutSpa/Controllers/SampleDataController.cs b/templates/KnockoutSpa/Controllers/SampleDataController.cs index 1eb3835..45fb312 100644 --- a/templates/KnockoutSpa/Controllers/SampleDataController.cs +++ b/templates/KnockoutSpa/Controllers/SampleDataController.cs @@ -14,7 +14,7 @@ namespace WebApplicationBasic.Controllers "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - [HttpGet, Route("[action]")] + [HttpGet("[action]")] public IEnumerable WeatherForecasts() { var rng = new Random(); diff --git a/templates/ReactReduxSpa/Controllers/SampleDataController.cs b/templates/ReactReduxSpa/Controllers/SampleDataController.cs index 71abf61..7cc5b7f 100644 --- a/templates/ReactReduxSpa/Controllers/SampleDataController.cs +++ b/templates/ReactReduxSpa/Controllers/SampleDataController.cs @@ -14,7 +14,7 @@ namespace WebApplicationBasic.Controllers "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - [HttpGet, Route("[action]")] + [HttpGet("[action]")] public IEnumerable WeatherForecasts(int startDateIndex) { var rng = new Random(); diff --git a/templates/ReactSpa/Controllers/SampleDataController.cs b/templates/ReactSpa/Controllers/SampleDataController.cs index 1eb3835..45fb312 100644 --- a/templates/ReactSpa/Controllers/SampleDataController.cs +++ b/templates/ReactSpa/Controllers/SampleDataController.cs @@ -14,7 +14,7 @@ namespace WebApplicationBasic.Controllers "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - [HttpGet, Route("[action]")] + [HttpGet("[action]")] public IEnumerable WeatherForecasts() { var rng = new Random();