public ActionResult <IEnumerable <ReservationReadDto> > GetAllReservations() { IEnumerable <Reservation> reservations = _reservationRepo.GetAllReservations(); IEnumerable <ReservationReadDto> reservationsReadDtos = _mapper.Map <IEnumerable <ReservationReadDto> >(reservations); return(Ok(reservationsReadDtos)); }
// GET: Reservation public async Task <ActionResult> Index() { var reservations = await _reservationRepo.GetAllReservations(); return(View("Index", reservations)); }