예제 #1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // Initialize the product database
            Database.SetInitializer(new ProductDatabaseInitializer());

            // Create the custom role and user
            RoleAction roleAction = new RoleAction();

            roleAction.AddUserAndRole();

            // Add Routes
            RegisterCustomRoutes(RouteTable.Routes);
        }