public ValidationResult ComparePassword(string password, string hashPassword) { _password = password; result = new ValidationResult(); this.IsNull(); if (!result.IsSucces) { return(result); } bool isCorrectPassword = HashEncryption.Verification(_password, hashPassword); if (!isCorrectPassword) { result.AddError(ValidationKey.PasswordNotCompare); } return(result); }