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