Exemple #1
0
        public async Task <ActionResult <IReadOnlyCollection <CoinDto> > > GetAsync()
        {
            IReadOnlyCollection <CoinDto> coins = await _coinService.GetAllAsync <CoinDto>();

            return(Ok(coins));
        }
Exemple #2
0
        public async Task <ActionResult <IReadOnlyCollection <PriceDto> > > GetAsync()
        {
            IReadOnlyCollection <PriceDto> prices = await _coinService.GetAllAsync <PriceDto>();

            return(Ok(prices));
        }