コード例 #1
0
ファイル: CoinController.cs プロジェクト: rdtriggs/Stashy
        public async Task <ActionResult <IReadOnlyCollection <CoinDto> > > GetAsync()
        {
            IReadOnlyCollection <CoinDto> coins = await _coinService.GetAllAsync <CoinDto>();

            return(Ok(coins));
        }
コード例 #2
0
ファイル: PriceController.cs プロジェクト: rdtriggs/Stashy
        public async Task <ActionResult <IReadOnlyCollection <PriceDto> > > GetAsync()
        {
            IReadOnlyCollection <PriceDto> prices = await _coinService.GetAllAsync <PriceDto>();

            return(Ok(prices));
        }