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