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)))); }
public async Task <List <CatImageEntity> > FetchCatImages(string catId, int page, int limit) { return(await _theCatsApi.FetchCatImages(catId, page, limit)); }