public void DeleteSymbol(PositionEntry positionEntry) { TransactionFeed transactionFeed = FinanceService.Query(new TransactionQuery(positionEntry.TransactionHerf + Details())); //+ FinanceNamespace.TRANSACTIONSAPPENDQUERY)); foreach (TransactionEntry transactionEntry in transactionFeed.Entries) { FinanceService.Delete(new Uri(transactionEntry.EditUri.Content)); } }
public List <TransactionEntry> RetrieveSymbolTransaction(PositionEntry entry) { TransactionFeed transactionFeed = FinanceService.Query(new TransactionQuery(entry.TransactionHerf + Details())); List <TransactionEntry> transactionEntries = new List <TransactionEntry>(); //transactionFeed.Entries.ToList<AtomEntryCollection>().ForEach(t => transactionEntries.Add(t)); foreach (TransactionEntry te in transactionFeed.Entries) { transactionEntries.Add(te); } return(transactionEntries); }