// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, Alef_VinalContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } context.EnsureCreated(); app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.UseCors("CorsPolicy"); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public ValueCodeRepository(Alef_VinalContext context) { this.context = context; }