コード例 #1
0
        public async Task <IActionResult> PutHotelRoom(int id, HotelRoom hotelRoom)
        {
            if (id != hotelRoom.HotelId)
            {
                return(BadRequest());
            }

            if (!await _hotelRoomRepo.PutHotelRoom(hotelRoom))
            {
                return(NoContent());
            }

            return(NoContent());
        }