public static bool CheckNameExists(string name) { return(Constellations.Any(c => !String.IsNullOrEmpty(c.Name) && c.Name.ToLower() == name.ToLower())); }
private static bool CheckExists(TimeCoordinate p, int ra, double dec) { return(Constellations.Any(c => c.TimeCoordinate == p && c.CoordRA == ra && c.CoordDEC == dec)); }