protected void Application_Start() { //AreaRegistration.RegisterAllAreas(); DatabaseConfig.Initialize(); AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi)); GlobalConfiguration.Configure(WebApiConfig.Register); //FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); //RouteConfig.RegisterRoutes(RouteTable.Routes); //BundleConfig.RegisterBundles(BundleTable.Bundles); }
public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); DatabaseConfig.Initialize(); AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi)); var config = new HttpConfiguration(); WebApiConfig.Register(config); ConfigureAuth(app); app .UseNinjectMiddleware(NinjectConfig.CreateKernel) .UseNinjectWebApi(config); }
protected void Application_Start() { DatabaseConfig.Initialize(); GlobalConfiguration.Configure(WebApiConfig.Register); }
protected void Application_Start() { DatabaseConfig.Initialize(); AutoMapperConfig.RegisterMappings(Assembly.Load(Assemblies.WebApi)); }