private static Command getAllRates() { var cmd = new Command("--all", "Gets all currencies with base Euro."); cmd.Handler = CommandHandler.Create(() => { NetworkHandler handler = new NetworkHandler(); var response = handler.GetRates(); Console.WriteLine("All stored currencies with base Euro will follow."); foreach (var item in response.Result.Rates) { Console.WriteLine(item); } }); return(cmd); }
public async Task <SuccessResponse> GetAllRates() { return(await handler.GetRates()); }
public async Task <bool> GetData() { var rates = await handler.GetRates(); return(dbLogic.Insert(rates)); }