private ValidationResult ValidateWithoutHasNoIdentificationNumberFlag(string identificationNumber)
        {
            if (string.IsNullOrEmpty(identificationNumber))
            {
                return(ValidationResult.Success);
            }

            var result = IdentificationNumberValidator.IdentificationNumberValidation(identificationNumber);

            if (result != IdentificationValidationResult.Ok && result != IdentificationValidationResult.NoValue)
            {
                return(new ValidationResult("Not valid identification number"));
            }

            return(ValidationResult.Success);
        }
        private ValidationResult ValidateWithHasNoIdentificationNumberFlag(bool hasNoIdentificationNumber, string identificationNumber)
        {
            if (hasNoIdentificationNumber)
            {
                if (!string.IsNullOrEmpty(identificationNumber))
                {
                    return(new ValidationResult("Cannot update IdentificationNumber if HasNoIdentificationNumber field is set to true"));
                }

                return(ValidationResult.Success);
            }

            if (IdentificationNumberValidator.IdentificationNumberValidation(identificationNumber) != IdentificationValidationResult.Ok)
            {
                return(new ValidationResult("Not valid identification number"));
            }

            return(ValidationResult.Success);
        }