API
FromRouteAttribute
Explicitly selects path route values for binding.
Formal Syntax & Structure
csharp syntaxcsharp
[FromRoute] int idWorking Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.[FromRoute] int idExplicitly selects path route values for binding.
[FromRoute] int id// Documentary fragment; see linked lesson for context.[FromRoute] int id