protected void Application_Start() { ViewEnginesConfiguration.RegisterViewEngines(ViewEngines.Engines); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start() { ViewEnginesConfiguration.RegisterViewEngines(ViewEngines.Engines); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); ModelBinders.Binders.Add(typeof(double?), new DoubleModelBinder()); }
protected void Application_Start() { ViewEnginesConfiguration.RegisterViewEngines(new RazorViewEngine()); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); var autoMapperConfig = new AutoMapperConfig(Assembly.GetExecutingAssembly()); autoMapperConfig.Execute(); }