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
 }
Exemple #2
0
 public ShackUpService()
 {
     statesRepo        = StatesRepositoryFactory.GetRepository();
     bathroomTypesRepo = BathroomTypesRepositoryFactory.GetRepository();
     listingsRepo      = ListingRepositoryFactory.GetRepository();
     acctRepo          = AccountRepositoryFactory.GetRepository();
 }