public async Task <ActionResult <IEnumerable <HotelRoomDTO> > > GetHotelRooms() => await _hotelroom.GetAllHotelRooms();
Esempio n. 2
0
 public async Task <ActionResult <IEnumerable <HotelRoomDTO> > > GetHotelRooms()
 {
     return(await _context.GetAllHotelRooms());
 }
 public async Task <ActionResult <IEnumerable <HotelRoom> > > GetHotelRooms(int hotelID)
 {
     return(await _context.GetAllHotelRooms(hotelID));
 }