Beispiel #1
0
        public async Task <ObservableCollection <Cat> > FetchCats(int page, int limit)
        {
            ObservableCollection <CatEntity> cats = await catsAPI?.FetchCats(page, limit);

            return(new ObservableCollection <Cat>(cats?.Select(x => mapper.Map <CatEntity, Cat>(x))));
        }
 public async Task <ObservableCollection <CatEntity> > FetchCats(int page, int limit)
 {
     return(await _theCatsApi.FetchCats(page, limit));
 }