private static void AddLoginToAccount(string loginUrlID, string accountID) { TBRAccountRoot accountRoot = TBRAccountRoot.RetrieveFromDefaultLocation(accountID); TBLoginInfo loginInfo = TBLoginInfo.CreateDefault(); loginInfo.OpenIDUrl = loginUrlID; accountRoot.Account.Logins.CollectionContent.Add(loginInfo); accountRoot.Account.StoreAccountToRoot(); }