Model View Controller (MVC) Question:
Is the following route definition a valid route definition?
Answer:
{controller}{action}/{id}
No, the above definition is not a valid route definition, because there is no literal value or delimiter between the placeholders. Therefore, routing cannot determine where to separate the value for the controller placeholder from the value for the action placeholder.
No, the above definition is not a valid route definition, because there is no literal value or delimiter between the placeholders. Therefore, routing cannot determine where to separate the value for the controller placeholder from the value for the action placeholder.
Previous Question | Next Question |
What are the 3 things that are needed to specify a route? | What is the use of the following default route? |