Beispiel #1
0
        public static async Task <List <string> > LoadSymbols()
        {
            StockSymbolData data    = new StockSymbolData();
            var             symbols = await data.LoadStockSymbols();

            var output = TrimToUpperList(symbols);

            return(output);
        }
Beispiel #2
0
 public static async Task SaveStockSymbol(string symbol)
 {
     StockSymbolData      data        = new StockSymbolData();
     StockSymbolDataModel stockToSave = new StockSymbolDataModel
     {
         StockSymbol = symbol
     };
     await data.SaveStockSymbol(stockToSave);
 }
Beispiel #3
0
 public static async Task RemoveStockFromList(string symbol)
 {
     StockSymbolData data = new StockSymbolData();
     await data.DeleteStockSymbol(symbol);
 }