Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double Route
Message
 
 
À
19/07/2018 06:46:48
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01661249
Message ID:
01661256
Vues:
40
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform