protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            DependenciesConfig.RegisterDependencies();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            PhotoService photoService = new PhotoService(new Logger());
            photoService.CreateAndConfigure();

            var configuration = new MyFixIt.Persistence.EFConfiguration();

            DbConfiguration.SetConfiguration(configuration);

            IdentityConfig.ConfigureIdentity();
        }
Exemple #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            DependenciesConfig.RegisterDependencies();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            PhotoService photoService = new PhotoService(new Logger());

            photoService.CreateAndConfigure();

            var configuration = new MyFixIt.Persistence.EFConfiguration();

            DbConfiguration.SetConfiguration(configuration);

            IdentityConfig.ConfigureIdentity();
        }