public ActionResult <IEnumerable <BookingDto> > GetAllBookings()
        {
            var bookings = _repository.GetAllBookings();

            return(Ok(_mapper.Map <IEnumerable <BookingDto> >(bookings)));
        }
Esempio n. 2
0
 public List <Booking> GetAllBookings()
 {
     return(repo.GetAllBookings());
 }