Пример #1
0
        // 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();
        }
Пример #2
0
 public CarSalesController(CarSalesContext context)
 {
     _context = context;
 }
Пример #3
0
 public BodiesChartsController(CarSalesContext context)
 {
     _context = context;
 }
 public CreateVehicleOtherPropertyCommand(CarSalesContext context)
 {
     _context = context;
 }
Пример #5
0
 public CarsController(CarSalesContext context, Lists.Lists myList)
 {
     _context = context;
     myCars   = myList;
 }
 public GetVehicleTypePropertyListQuery(CarSalesContext context)
 {
     _context = context;
 }
Пример #7
0
 public CarSalesRepository(CarSalesContext context)
 {
     _context = context;
 }
Пример #8
0
 public ColorsChartsController(CarSalesContext context)
 {
     _context = context;
 }
 public CreateVehicleCommand(CarSalesContext context)
 {
     _context = context;
 }