Exemple #1
0
 void Application_Start(object sender, EventArgs e)
 {
     // Code that runs on application startup
     //BundleConfig.RegisterBundles(BundleTable.Bundles);
     //AuthConfig.RegisterOpenAuth();
     AppInitializer.InitNhibernate();
     RouteTable.Routes.MapHttpRoute(
         name: "DefaultApi",
         routeTemplate: "api/{controller}/{action}/{id}",
         defaults: new { id = System.Web.Http.RouteParameter.Optional }
         );
 }