public static void AddNewAlias(string domainName, string userName, string AccountAliasID) { try { XMLayer xm = new XMLayer(); xm = XMServer.CreateXMLayer(); xm.Login(); xm.AddAlias(domainName, userName, AccountAliasID); xm.Logout(); } catch (Exception error) { Log.WriteException(error); throw; } }