Example #1
0
        public UnitOfWork(CarsDbContext context)
        {
            _context = context;

            Vehicles = new VehicleRepository(_context);
            Features = new FeaturesRepository(_context);
            Makes    = new MakesRepository(_context);
            Models   = new ModelsRepository(_context);
        }
Example #2
0
 public MakesService(MakesRepository repository)
 {
     this.repository = repository;
 }