public async Task <ActionResult <IEnumerable <HotelRoomDTO> > > GetHotelRooms() { return(await _context.GetAllHotelRooms()); }
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()); }