private async Task GetShelfBooks() { var result = await _gr.GetShelfBooks(); foreach (var item in result.Review) { var itemVM = new ReviewViewModel(item); if (reviews.Any(r => r.Id == item.Id)) { continue; } reviews.Add(itemVM); } NotifyPropertyChanged("Reviews"); NotifyPropertyChanged("FrontPageBooks"); NotifyPropertyChanged("CurrentlyReading"); }
private async Task GetShelfBooks() { var result = await _gr.GetShelfBooks(); foreach (var item in result.Review) { var itemVM = new ReviewViewModel(item); if (reviews.Any(r => r.Id == item.Id)) continue; reviews.Add(itemVM); } NotifyPropertyChanged("Reviews"); NotifyPropertyChanged("FrontPageBooks"); NotifyPropertyChanged("CurrentlyReading"); }