ActionFilters.Global.Application_Start C# (CSharp) Method

Application_Start() protected method

protected Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void Application_Start(object sender, EventArgs e) {

            GlobalConfiguration.Configuration.Routes.MapHttpRoute(
                "DefaultHttpRoute",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
            );
        }
    }