public async Task LoadNotations() { NotationList.Clear(); var request = new Model.Requests.NotationsSearchRequest { Decade = _decade, Filter = (int)ReviewStatus.Approved, Sort = SortingMode.Value }; var list = await _serviceNotations.Get <List <Models.NotationBrowseListItem> >(request); foreach (var item in list) { UpdateStarRating(item); NotationList.Add(item); } }
public async Task LoadNotations() { NotationList.Clear(); var request = new Model.Requests.NotationsSearchRequest { ArtistId = _artistId, Filter = (int)ReviewStatus.Approved }; var list = await _serviceNotations.Get <List <Models.NotationBrowseListItem> >(request); NothingToSeeNotations = list.Count == 0; int counter = 0; foreach (var item in list.GetRange(0, Math.Min(list.Count, 5))) { UpdateStarRating(item); item.Counter = ++counter; NotationList.Add(item); } }