This project is read-only.

Parameter names of controlers

May 30, 2013 at 5:20 PM
Hi to all!

In this tutorial, on step 2, we have two diferent types of URL:
  • "localhost:port/Store/Details/5"
  • "localhost:port/Store/Browse?Genre=Disco"
In the first we write the value directly, but in the second we must write the name of the parameter.

Why this difference?
I have seen that is not caused for de data type of the input (int or string), but if the name of the input parameter is "id" we can use the first option.
Why this?

Thanks a lot!