Beispiel #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, MovieTimeContext mvcontext)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

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

            DBInitializer.Initialize(mvcontext);

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthentication();

            app.UseAuthorization();

            app.UseCors();



            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
        }
Beispiel #2
0
 public Serie(MovieTimeContext context)
 {
     this.context = context;
 }
Beispiel #3
0
 public Login(MovieTimeContext context)
 {
     this.context = context;
 }
Beispiel #4
0
 public Film(MovieTimeContext context)
 {
     this.context = context;
 }
Beispiel #5
0
 public Acteurs(MovieTimeContext context)
 {
     this.context = context;
 }