Skip to content

Commit 152f1a8

Browse files
Update adding-model.md (#35085)
* 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]>
1 parent e5d396a commit 152f1a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/tutorials/first-mvc-app/adding-model.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: wadepickett
44
description: Part 4 of tutorial series on ASP.NET Core MVC.
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: wpickett
7-
ms.date: 03/02/2025
7+
ms.date: 03/28/2025
88
uid: tutorials/first-mvc-app/adding-model
99
---
1010

@@ -352,15 +352,15 @@ Examine the generated `Details` method in the `Controllers/MoviesController.cs`
352352

353353
[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie90/Controllers/MoviesController.cs?name=snippet_Details)]
354354

355-
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:
356356

357357
* The controller to the `movies` controller, the first URL segment.
358358
* The action to `details`, the second URL segment.
359359
* The `id` to 1, the last URL segment.
360360

361361
The `id` can be passed in with a query string, as in the following example:
362362

363-
`https://localhost:5001/movies/details?id=1`
363+
`https://localhost:{PORT}/movies/details?id=1`
364364

365365
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.
366366

0 commit comments

Comments
 (0)