public FilmService(BlueCinemaContext context) { this.context = context; }
public BookingService(BlueCinemaContext context) { this.context = context; }
public SeanceService(BlueCinemaContext context) { this.context = context; }
// 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(); }