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 custom role and user new RoleActions().AddUserAndRole(); //Add Routes RouteActions.RegisterCustomRoutes(RouteTable.Routes); }
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()); //власний користувач та роль RoleActions roleActions = new RoleActions(); roleActions.AddUserAndRole(); //добавляєм шляхи RouteActions.RegisterCustomRoutes(RouteTable.Routes); }
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 adminstrator role and user RoleActions roleActions = new RoleActions(); roleActions.CreateAdmin(); // Add routes RouteActions routeActions = new RouteActions(); routeActions.RegisterCustomRoutes(RouteTable.Routes); }
void Application_Start(object sender, EventArgs e) { // Start with defaults RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); // Initialize the product database Database.SetInitializer(new ProductDatabaseInitializer()); // Create custom role and user RoleActions roleActions = new RoleActions(); roleActions.AddUserAndRole(); // Add custom routes RouteActions routeActions = new RouteActions(); routeActions.RegisterCustomRoutes(RouteTable.Routes); }
void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); // Initializa the product datbase. Database.SetInitializer(new ProductDatabaseInitializer()); System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US", true); // Create the custom role and user. RoleActions roleActions = new RoleActions(); roleActions.AddUserAndRole(); // Add Routes. RouteActions.RegisterCustomRoutes(RouteTable.Routes); }