private bool ValidateData()
        {
            ErrorNewPassword     = string.IsNullOrEmpty(NewPassword) ? AppResources.PasswordRequired : string.Empty;
            ErrorConfirmPassword = string.IsNullOrEmpty(ConfirmPassword) ? AppResources.PasswordRequired : string.Empty;

            if (string.IsNullOrEmpty(ErrorNewPassword) && string.IsNullOrEmpty(ErrorConfirmPassword))
            {
                ErrorNewPassword     = (NewPassword.Length < 8) ? AppResources.PasswordLength : string.Empty;
                ErrorConfirmPassword = ValidatorHelper.IsEqualData(NewPassword, ConfirmPassword) ? string.Empty : AppResources.DifferentPassword;
            }
            else
            {
                return(false);
            }

            return(string.IsNullOrEmpty(ErrorNewPassword) && string.IsNullOrEmpty(ErrorConfirmPassword));
        }
        private void ValidateEmails()
        {
            if (string.IsNullOrEmpty(Email))
            {
                ErrorEmail = AppResources.MailRequired;
                return;
            }

            ErrorEmail = ValidatorHelper.IsValidEmail(Email) ? string.Empty : AppResources.WriteValidEmail;

            if (string.IsNullOrEmpty(ConfirmationEmail))
            {
                ErrorConfirmationEmail = AppResources.MailRequired;
                return;
            }

            ErrorConfirmationEmail = ValidatorHelper.IsValidEmail(ConfirmationEmail) ? string.Empty : AppResources.WriteValidEmail;
            ErrorConfirmationEmail = ValidatorHelper.IsEqualData(Email, ConfirmationEmail) ? ErrorConfirmationEmail : AppResources.DifferentEmail;
        }
        private void ValidatePasswords()
        {
            ErrorPassword = ErrorConfirmationPassword = string.Empty;
            if (string.IsNullOrEmpty(Password))
            {
                ErrorPassword = AppResources.PasswordRequired;
                return;
            }

            if (Password.Length < 8)
            {
                ErrorPassword = AppResources.PasswordLength;
                return;
            }

            if (string.IsNullOrEmpty(ConfirmationPassword))
            {
                ErrorConfirmationPassword = AppResources.PasswordRequired;
                return;
            }
            ErrorConfirmationPassword = ValidatorHelper.IsEqualData(Password, ConfirmationPassword) ? string.Empty : AppResources.DifferentPassword;
        }