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);
        }
Exemplo n.º 2
0
 public PictureManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
Exemplo n.º 3
0
 public AlbumManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
Exemplo n.º 4
0
 public CategoryManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
 public UserManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }