Пример #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 ProjectAssignmentDatabaseInitializer());

            // Create the administrator role and user.
            RoleActions roleActions = new RoleActions();

            roleActions.CreateAdmin();

            // Create the developer and client roles
            RoleActions Developer = new RoleActions();

            Developer.CreateDeveloper();
            RoleActions Client = new RoleActions();

            Client.CreateClient();
        }