You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update adding-model.md
The URL port will vary from machine to machine. Earlier pages of this tutorial used the {PORT} placeholder so I'm making it consistent here.
* Update date in adding-model.md tutorial
---------
Co-authored-by: Wade Pickett <[email protected]>
The `id` parameter is generally passed as route data. For example, `https://localhost:5001/movies/details/1` sets:
355
+
The `id` parameter is generally passed as route data. For example, `https://localhost:{PORT}/movies/details/1` sets:
356
356
357
357
* The controller to the `movies` controller, the first URL segment.
358
358
* The action to `details`, the second URL segment.
359
359
* The `id` to 1, the last URL segment.
360
360
361
361
The `id` can be passed in with a query string, as in the following example:
362
362
363
-
`https://localhost:5001/movies/details?id=1`
363
+
`https://localhost:{PORT}/movies/details?id=1`
364
364
365
365
The `id` parameter is defined as a [nullable type](/dotnet/csharp/programming-guide/nullable-types/index) (`int?`) in cases when the `id` value isn't provided.
0 commit comments