public Domain.Ideation.Ideation ChangeIdeation(int id, string title, int projectPhaseId) { Domain.Ideation.Ideation toChange = GetIdeation(id); if (toChange != null) { ProjectPhase phase = _projectManager.GetProjectPhase(projectPhaseId); if (phase == null) { throw new ArgumentException("Project phase not found", "projectPhaseId"); } toChange.Title = title; toChange.ProjectPhase = phase; Validate(toChange); return(_ideationRepository.UpdateIdeation(toChange)); } throw new ArgumentException("Ideation not found.", "id"); }