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(); }
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; }
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(); }
public BodyStyleManager(IBodyStyleRepository bodyStyleRepository) { Repo = bodyStyleRepository; }