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)); }
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)); }