Пример #1
0
 public HomeController()
 {
     _carsRepo                  = CarRepositoryFactory.GetRepository();
     _specialsRepo              = SpecialsRepositoryFactory.GetRepository();
     _makeRepo                  = MakeRepositoryFactory.GetRepository();
     _modelRepo                 = ModelRepositoryFactory.GetRepository();
     _colorRepo                 = ColorRepositoryFactory.GetRepository();
     _bodyStyleRepository       = BodyStyleRepositoryFactory.GetRepository();
     _transmissionRepository    = TransmissionRepositoryFactory.GetRepository();
     _customerContactRepository = CustomerContactRepositoryFactory.GetRepository();
 }
Пример #2
0
 public RepositoryManager(IColorRepository colorRepository, IBodyStyleRepository bodyStyleRepository, ICarModelRepository carModelRepository, ICarsRepository carsRepository, ICarTypeRepository carTypeRepository, IInteriorColorRepository interiorColorRepository, IMakeRepository makeRepository, ITransmissionRepository transmissionRepository)
 {
     this.transmissionRepository  = transmissionRepository;
     this.makeRepository          = makeRepository;
     this.interiorColorRepository = interiorColorRepository;
     this.carTypeRepository       = carTypeRepository;
     this.carsRepository          = carsRepository;
     this.carModelRepository      = carModelRepository;
     this.bodyStyleRepository     = bodyStyleRepository;
     this.colorRepository         = colorRepository;
 }
Пример #3
0
 public AdminController()
 {
     _carsRepo                  = CarRepositoryFactory.GetRepository();
     _specialsRepo              = SpecialsRepositoryFactory.GetRepository();
     _makeRepo                  = MakeRepositoryFactory.GetRepository();
     _modelRepo                 = ModelRepositoryFactory.GetRepository();
     _colorRepo                 = ColorRepositoryFactory.GetRepository();
     _bodyStyleRepository       = BodyStyleRepositoryFactory.GetRepository();
     _transmissionRepository    = TransmissionRepositoryFactory.GetRepository();
     _customerContactRepository = CustomerContactRepositoryFactory.GetRepository();
     _purchaseLogRepository     = PurchaseLogRepositoryFactory.GetRepository();
     _userRepository            = UserRepositoryFactory.GetRepository();
 }
Пример #4
0
 public BodyStyleManager(IBodyStyleRepository bodyStyleRepository)
 {
     Repo = bodyStyleRepository;
 }