public AccommodationService()
 {
     uow = new UnitOfWork();
     if (BusinessContext.IsParentInPreview <Accommodation>())
     {
         _context = new BIG4MongoContext(BusinessContext.GetPreviewVersion(), true);
     }
     else
     {
         _context = new BIG4Context();
     }
 }
예제 #2
0
 public ParkDetailService(IBIG4Context context)
 {
     _context = context;
 }
예제 #3
0
 public ParkDetailService()
 {
     uow      = new UnitOfWork();
     _context = new BIG4Context();
 }
 public CrudService(int version)
 {
     _context = new BIG4MongoContext(version);
     uow      = new UnitOfWork();
 }
 public CrudService()
 {
     uow      = new UnitOfWork();
     _context = new BIG4Context();
     // _context = new BIG4MongoContext(6);
 }