RouteConfigRegisterRoutes Method |
Namespace: SOWIWeb.Foundation.App
public static void RegisterRoutes( RouteCollection routes, string pController = "Home", string pAction = "Index", string pID = "", string pParameter = "" )
The default route is: /Home/Index
Default route can has follow parameters: "id" and "parameter"
/// <summary> /// SOWI Web application. Application start event. Puts global routing. /// </summary> public class MvcApplication : System.Web.HttpApplication { /// <summary> /// SOWI Web application start event: puts global routes /// </summary> /// <seealso cref="SOWIWeb.Foundation.RouteConfig"/> protected void Application_Start() { SOWIWeb.Foundation.RouteConfig.RegisterRoutes(RouteTable.Routes); } }