public CarRepository(CarAPIContext context) { _context = context; }
public CarRepository(CarAPIContext context) { _context = context; _context.Database.EnsureCreated(); }
public CarRepository() { _context = new CarAPIContext(); }
public CarsController(CarAPIContext context) { _context = context; }