Route Values and the Query String

Values reach an action from the route (/products/7) or the query string (?page=2). Choose which with the address's meaning, give optional values defaults, and use [FromRoute] and [FromQuery] to be explicit.

Updated

Cheat sheet: Route Values and the Query String
Category
ASP.NET Core
Level
Journeyman
Tags
[FromQuery], [FromRoute], aspnet-core, c-sharp, Query String, Route Parameter (aspnet-core)