For this activity, please ensure you have completed Activity 5 and have your solution open in Visual Studio 2017.
We're going to explore binding data from route parameters.
- Update the route attribute to include an optional route parameter.
[Route("{name?}")]
- Run the application by pressing F5.
- Add a suffix to the path of the URL to pass your name which will be bound to the action argument. e.g. '/Steve'.
- Press Enter to navigate to the updated URL.
The completed example for this activity can be found in the '/steps/06-Binding-From-Route-Parameters' folder.
Continue to Activity 7.