public static SystemAccount CreateSystemAccount(string name, string logonName, string address, string notes, string hashedPassword, EnumSystemAccountType accountType) { SystemAccount newSystemAccount = new SystemAccount(); newSystemAccount.GUID = IDGenerator.GenerateSystemAccountID(accountType); newSystemAccount.Name = name; newSystemAccount.LogonName = logonName; newSystemAccount.Address = address; newSystemAccount.Notes = notes; newSystemAccount.HashedPassword = hashedPassword; newSystemAccount.AccountType = accountType.ToString(); return(newSystemAccount); }