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