예제 #1
0
 public BookingService(TourContext db, TourService tourService)
 {
     this._db          = db;
     this._tourService = tourService;
     dbSet             = _db.Set <Tour>();
 }
예제 #2
0
 public TravelService(TourContext db, IHostingEnvironment hostingEnvironment)
 {
     this._db = db;
     this._hostingEnvironment = hostingEnvironment;
     dbSet = _db.Set <Tour>();
 }
예제 #3
0
 public async Task <IEnumerable <T> > GetAll()
 {
     return(await _context.Set <T>().ToListAsync());
 }