public void Put(int id, [FromBody] Attraction attraction) { Attraction attractionToUpdate = _attractionRepository.GetSingleByID(id); attractionToUpdate.Update(attraction); _sectionRepository.UpdateAttractionSections(id, attraction.Sections); _unitOfWork.Save(); }