Ejemplo n.º 1
0
        protected void Application_Start()
        {
            // Routing
            AreaRegistration.RegisterAllAreas();
            RegisterRoutes(RouteTable.Routes);

            // Dependency injection
            ControllerBuilder.Current.SetControllerFactory(new TrackyControllerFactory());

            // Auto-mapper
            TrackyMapping.SetupMapping();

            // RouteDebugger
            //RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes);
        }
Ejemplo n.º 2
0
        public static IMappingEngine SetupMapper()
        {
            TrackyMapping.SetupMapping();

            return(Mapper.Engine);
        }