Model View Controller (MVC) Question:

Is the following route definition a valid route definition?

Tweet Share WhatsApp

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.

Download MVC PDF Read All 48 MVC Questions
Previous QuestionNext Question
What are the 3 things that are needed to specify a route?What is the use of the following default route?