Example #1
0
        public async Task <ActionResult <HotelRoomDTO> > GetSingleHotelRoom(int hotelId, int roomNumber)
        {
            HotelRoomDTO hotelRoomDto = await _hotelRoom.GetSingleHotelRoom(hotelId, roomNumber);

            if (hotelRoomDto == null)
            {
                return(NotFound());
            }

            return(hotelRoomDto);
        }
Example #2
0
        public async Task <ActionResult <HotelRoom> > GetHotelRoom(int roomNumber, int hotelId)
        {
            var hotelRoom = await _hotelRoom.GetSingleHotelRoom(roomNumber, hotelId);

            if (hotelRoom == null)
            {
                return(NotFound());
            }

            return(hotelRoom);
        }