Example #1
0
        public void RemoveStockFromPortfolio(string inPortfolioID, string inStockName)
        {
            Stock     stock     = currentStocks.getStock(inStockName);
            Portfolio portfolio = currentPortfolio.getPortfolio(inPortfolioID);

            portfolio.removeStock(stock);
        }
Example #2
0
        public void RemoveStockFromPortfolio(string inPortfolioID, string inStockName, int numberOfShares)
        {
            Stock     stock     = currentStocks.getStock(inStockName);
            Portfolio portfolio = currentPortfolio.getPortfolio(inPortfolioID);

            portfolio.removeStock(stock, numberOfShares);
        }