예제 #1
0
 public FilmService(BlueCinemaContext context)
 {
     this.context = context;
 }
예제 #2
0
 public BookingService(BlueCinemaContext context)
 {
     this.context = context;
 }
예제 #3
0
 public SeanceService(BlueCinemaContext context)
 {
     this.context = context;
 }
예제 #4
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, BlueCinemaContext dbContext)
        {
            app.UseAuthentication();
            loggerFactory.AddConsole();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                dbContext.Database.Migrate();
            }

            app.UseCors(builder =>
                        builder.AllowAnyOrigin()
                        .AllowAnyHeader()
                        .AllowAnyMethod()
                        );

            app.UseStaticFiles();
            app.UseMvc();
        }