// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, WheelsDBContext wheelsDBContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseRouting(); wheelsDBContext.Database.EnsureCreated(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public MakesController(WheelsDBContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public VehiclesController(WheelsDBContext wheelsDBContext) { _wheelsDbContext = wheelsDBContext; }
public FeaturesController(WheelsDBContext context, IMapper mapper) { this.mapper = mapper; this.context = context; }