public ListingsController() { _svc = ShackUpServiceFactory.GetService(); listingRepo = ListingRepositoryFactory.GetRepository(); //use if no service layer statesRepo = StatesRepositoryFactory.GetRepository(); //use if no service layer bathroomTypesRepo = BathroomTypesRepositoryFactory.GetRepository(); //use if no service layer }
public ShackUpService() { statesRepo = StatesRepositoryFactory.GetRepository(); bathroomTypesRepo = BathroomTypesRepositoryFactory.GetRepository(); listingsRepo = ListingRepositoryFactory.GetRepository(); acctRepo = AccountRepositoryFactory.GetRepository(); }