async Task ExecuteLoadTVShowCommand() { if (IsBusy) { return; } IsBusy = true; try { TVShow newShow = TVShowsStore.GetTVShowDetails(TVShow.Id); this.TVShow = new TVShow { Genres = this.TVShow.Genres, Id = this.TVShow.Id, Name = this.TVShow.Name, VoteAverage = this.TVShow.VoteAverage, ReleaseDate = newShow.ReleaseDate, Overview = this.TVShow.Overview, Popularity = this.TVShow.Popularity, PosterThumb = this.TVShow.PosterThumb, PosterImage = this.TVShow.PosterImage }; OnPropertyChanged("TVShow"); } finally { IsBusy = false; } }
async Task ExecuteLoadPopularTVShowsCommand() { if (IsBusy) { return; } IsBusy = true; try { PopularTVShows = TVShowsStore.ListPopular(CurrentPage); OnPropertyChanged("PopularTVShows"); } finally { IsBusy = false; } }