Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Double Route
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Double Route
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01661249
Message ID:
01661249
Views:
51
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform