public VehicleController(VehiclesRepo repository) { this._repository = repository ?? throw new ArgumentNullException(nameof(repository)); }
public VehiclesController(IConfiguration configuration) { repo = new VehiclesRepo(configuration); }
public VehicleController(VehiclesRepo repository) { this._repository = repository ?? throw new ArgumentNullException(nameof(repository)); }
public VehiclesController(IConfiguration configuration) { repo = new VehiclesRepo(configuration); }