public void Save(AccountData account, SecureString password) { if (account == null) { throw new ArgumentNullException("account"); } { IHashedPassword hashedPassword = new HashedPassword(); SecuredPassword securedPassword = hashedPassword.HashPassword(password.GetStringFinalize()); AccountModel accountModel = AccountModel.New( account.Username, securedPassword, account.AccessType); AccountPersistence persistence = new MySQLAccountPersistence(); persistence.Save(accountModel); } }