public static bool AddCandidate(Candidate c) { if (Candidates.Exists(ci => { return(ci.Name.Equals(c.Name)); })) { return(false); } else { Candidates.Add(c); return(true); } }