Exemplo n.º 1
0
 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
 }
Exemplo n.º 2
0
 public MyAccountController()
 {
     _svc     = ShackUpServiceFactory.GetService();
     acctRepo = AccountRepositoryFactory.GetRepository(); //use if no service layer
 }
Exemplo n.º 3
0
 public HomeController()
 {
     _svc        = ShackUpServiceFactory.GetService();
     listingRepo = ListingRepositoryFactory.GetRepository(); //use if no service layer
 }
Exemplo n.º 4
0
 public ListingsAPIController()
 {
     _svc        = ShackUpServiceFactory.GetService();
     acctRepo    = AccountRepositoryFactory.GetRepository(); //use if no service layer
     listingRepo = ListingRepositoryFactory.GetRepository(); //use if no service layer
 }