Beispiel #1
0
        public async Task <IActionResult> PutHotels(int id, Hotels hotels)
        {
            if (id != hotels.ID)
            {
                return(BadRequest());
            }

            var updatedHotel = await _hotel.UpdateHotel(id, hotels);

            return(Ok(updatedHotel));
        }