public async Task <ActionResult <IEnumerable <HotelRoomDTO> > > GetHotelRooms()
 {
     return(await _context.GetAllHotelRooms());
 }
Exemple #2
0
        public async Task <ActionResult <List <HotelRoomDTO> > > GetAllRoomDetails(int hotelId)
        {
            List <HotelRoomDTO> hotelRooms = await _hotelRooms.GetAllHotelRooms(hotelId);

            return(hotelRooms);
        }
 public async Task <IEnumerable <HotelRoom> > GetHotelRooms()
 {
     return(await repository.GetAllHotelRooms());
 }