public async Task <IActionResult> PutHotelRoom(int id, HotelRoom hotelRoom) { if (id != hotelRoom.HotelId) { return(BadRequest()); } if (!await _hotelRoomRepo.PutHotelRoom(hotelRoom)) { return(NoContent()); } return(NoContent()); }