public CarRepository(AmidDbContext context) { _context = context; }
public HomeController(ILogger <HomeController> logger, AmidDbContext context, ICarRepository carRepository) { _logger = logger; _dbcontext = context; _carRepository = carRepository; }