public async Task <ActionResult <HotelRoomDTO> > GetSingleHotelRoom(int hotelId, int roomNumber) { HotelRoomDTO hotelRoomDto = await _hotelRoom.GetSingleHotelRoom(hotelId, roomNumber); if (hotelRoomDto == null) { return(NotFound()); } return(hotelRoomDto); }
public async Task <ActionResult <HotelRoom> > GetHotelRoom(int roomNumber, int hotelId) { var hotelRoom = await _hotelRoom.GetSingleHotelRoom(roomNumber, hotelId); if (hotelRoom == null) { return(NotFound()); } return(hotelRoom); }