public async Task <IActionResult> PutHotel(int id, HotelDto hotel) { if (id != hotel.Id) { return(BadRequest()); } if (!await _hotelRepo.PutHotel(hotel)) { return(NotFound()); } return(NoContent()); }