1.

What are the different properties of MVC routes?

Answer»

MVC ROUTES are accountable for governing which controller method will be executed for a given URL. Thus, the URL comprises the following properties:

  • Route Name: It is the URL pattern that is used for mapping the handler.
  • URL Pattern: It is another PROPERTY containing the LITERAL values as well as variable placeholders (KNOWN as URL parameters).
  • Defaults: This is the default parameter value assigned at the time of parameter creation.
  • Constraints: These are used for applying against the URL pattern for more narrowly defining the URL matching it.


Discussion

No Comment Found