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 bool DeletePortfolio(string title)
        {
            PortfolioQuery query         = new PortfolioQuery(FinanceNamespace.PORTFOLIOS + Details());
            PortfolioFeed  portfolioFeed = FinanceService.Query(query);

            try
            {
                foreach (PortfolioEntry entry in portfolioFeed.Entries)
                {
                    if (entry.Title.Text == title)
                    {
                        FinanceService.Delete(entry);
                        return(true);
                    }
                }
                return(false);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception trying to delete portfolio = {0}, Message = {1}", title, ex.Message);
            }

            return(false);
        }