public async Task Post() { var prices = await _coinRepository.GetPricesAsync(); foreach (var price in prices) { await _priceRepository.SaveAsync(price); } }
public async Task <IEnumerable <SnapshotPrice> > Get() { var prices = await _coinRepository.GetPricesAsync(); return(prices); }