public async Task <List <LibraryItem> > GetAllAsync() { var libResponse = await WebApi.RequestLibraryAsync(); var favoritesList = await FavoritesRepository.GetAllAsync(); var favoritesIdList = favoritesList.Select(x => x.EntityId).ToList(); return(DataMapper.Transform(libResponse).Select(x => { x.IsFavorite = favoritesIdList.Contains(x.Id); return x; }) .ToList()); }