parameter binding
How ASP.NET Core fills your handler's parameters from the address, query string, headers and body.
Parameter (model) binding maps route values, query strings, headers, the JSON body and services to handler parameters.
Loading interactive…
Examples
In
app.MapGet("/api/bookmarks/{id:int}", (int id, string? tag) => ...),idcomes from the route andtagfrom the query string.
See also