private static bool Part2Validity(Passport passport) { if (!Part1Validity(passport)) { return(false); }
private static bool Part1Validity(Passport passport) { return(new[] { passport.BirthYear, passport.ExpirationYear, passport.EyeColor, passport.HairColor, passport.Height, passport.IssueYear, passport.PassportId }.All(x => !string.IsNullOrWhiteSpace(x))); }