private void AddStocks(List<string> tickers) { foreach (string s in tickers) { Stock stock = new Stock(s); stock.Ticker = s; } }
private void AddStock(string ticker) { //Add stock to the database if it is not already there Stock stock = new Stock(ticker); stock.Ticker = ticker; }
public Stock GetStockData(string ticker) { Stock stock = new Stock(ticker); string name = stock.Name; return stock; }