コード例 #1
0
        public async Task <List <CatImage> > FetchCatImages(string catId, int page, int limit)
        {
            List <CatImageEntity> catImages = await catsAPI?.FetchCatImages(catId, page, limit);

            return(new List <CatImage>(catImages?.Select(x => mapper.Map <CatImageEntity, CatImage>(x))));
        }
コード例 #2
0
 public async Task <List <CatImageEntity> > FetchCatImages(string catId, int page, int limit)
 {
     return(await _theCatsApi.FetchCatImages(catId, page, limit));
 }