示例#1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            DataContext db = new DataContext();
            //Create all the roles
            db.AddRole();

            //Create Adminstrator
            db.CreateAdmin();

            //Operators for testing purpose: To be removed upon releasing
            db.CreateOrganization();
            //db.CreateDiveResortOp();
            //db.CreateDiveSiteOp();
        }