// PUT: api/Hotel/5 public void Put(int id, [FromBody] Hotel value) { ManageHotel mngHotel = new ManageHotel(); mngHotel.Updatehotel(value, id); }