Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Route
Message
 
 
To
19/07/2018 06:46:48
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01661249
Message ID:
01661256
Views:
39
>>Hi,
>>
>>I want to understand the following code:
>>
>>
>>[Route("{prodId}/shows/{id}")]
>>        [Route("shows/{id}")]
>>        [HttpGet]
>>        public IHttpActionResult GetShow(long id)
>>
>>Does the above mean that both routes will work and execute this method?
>>
>>Thanks in advance.
>
>Just try both routes and see …

I tried both, didn't get the actual edit form in both cases but didn't get errors either.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform