BootstrapAdmin11/Bootstrap.Admin/Global.asax.cs

20 lines
586 B
C#
Raw Normal View History

2016-10-20 17:55:29 +08:00
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
namespace Bootstrap.Admin
{
public class Global : HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
2016-10-21 16:35:26 +08:00
RouteConfig.RegisterRoutes(RouteTable.Routes);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
2016-10-20 17:55:29 +08:00
}
}
}