jeudi 7 avril 2016

How is routing done in ASP.NET MVC?

protected void Application_Start()
{
RouteConfig.RegisterRoutes(RouteTable.Routes);
}

In MvcApplication class, we call the RegisterRoutes method inside Application_Start method.Where do we create the object of RouteConfig class in the MvcApplication class so that RegisterRoutes is called?

Aucun commentaire:

Enregistrer un commentaire