public async Task <ActionResult <HotelRoom> > DeleteHotelRoom(int id) { HotelRoom hotelRoom = await repository.DeleteOneHotelRoomById(id); if (hotelRoom == null) { return(NotFound()); } return(hotelRoom); }
public async Task <ActionResult <HotelRoom> > DeleteHotelRoom(int id) { HotelRoom hotelRoom = await repository.DeleteOneHotelRoomById(id); if (hotelRoom == null) { return(NotFound()); } return(hotelRoom); }