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

            var output = TrimToUpperList(symbols);

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