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

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