private bool UpdateToFirstDefaultCompetitionCode(int ProjectID) { IEnumerable <CompetitionCodeList> CompetitionCode = projrepository.CompetitionCodeLists(); if (CompetitionCode.Any()) { CompetitionCodeList FirstCompetitionCode = CompetitionCode.First(); return(projrepository.InsertNewCompetitionCodeIntoProject(FirstCompetitionCode.CompetitionCodeID, ProjectID)); } else { return(false); } }