// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, CarSalesContext carSalesContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Error"); } app.UseStaticFiles(); app.UseCookiePolicy(); app.UseMvc(); carSalesContext.EnsureDbInitialized(); }
public CarSalesController(CarSalesContext context) { _context = context; }
public BodiesChartsController(CarSalesContext context) { _context = context; }
public CreateVehicleOtherPropertyCommand(CarSalesContext context) { _context = context; }
public CarsController(CarSalesContext context, Lists.Lists myList) { _context = context; myCars = myList; }
public GetVehicleTypePropertyListQuery(CarSalesContext context) { _context = context; }
public CarSalesRepository(CarSalesContext context) { _context = context; }
public ColorsChartsController(CarSalesContext context) { _context = context; }
public CreateVehicleCommand(CarSalesContext context) { _context = context; }