protected void Application_Start() { Database.SetInitializer(new MigrateDatabaseToLatestVersion <Models.FlowContext, Migrations.Configuration>()); FlowContext db = new FlowContext(); CriarRoles(db); //CriarSuperUser(db); //AddPermissoesSuperUser(db); db.Dispose(); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }