protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            dbContext = new GallerySystemServicesContext();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
Пример #2
0
 public PictureManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
Пример #3
0
 public AlbumManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
Пример #4
0
 public CategoryManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
 public UserManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }