public ActionResult <IEnumerable <BookingDto> > GetAllBookings() { var bookings = _repository.GetAllBookings(); return(Ok(_mapper.Map <IEnumerable <BookingDto> >(bookings))); }
public List <Booking> GetAllBookings() { return(repo.GetAllBookings()); }