In following the tutorial through Chapter 2, everything was cool until I hit step 3 on pages 44-5. When I run the program and visit "/Store/Details/5", I get an error complaining about a null parameter for int id.
If I make int id nullable:
Code:
public string Details(int? id)
I don't see the error, but I id is not displayed in the output, either.
The output is displayed correctly if I visit "/Store/Detials?id=5".
"ASP.NET MVC's default routing convention is to treat the segment of a URL after the action method name as a parameter named ID." - has this behavior changed, do I need to change a setting in Visual Studio, or have I overlooked something?
Thanks in advance for any assistance.