private async void GetAllData() { try { BusyIndicatorValue = true; List <Movie> moviesTest = await _dataService.GetPopularMoviesData(1); List <Show> showsTest = await _dataService.GetPopularShowsData(1); BestMovie = moviesTest.First(); SecondMovie = moviesTest[1]; ThirdMovie = moviesTest[2]; BestShow = showsTest.First(); SecondShow = showsTest[1]; ThirdShow = showsTest[2]; BusyIndicatorValue = false; } catch (ServiceRequestException) { RaiseNotification(); } catch (Exception e) { _logger.ErrorException(ForExceptions, e); } }
private async void GetPopularShows(int page) { try { BusyIndicatorValue = true; List <Show> showsTest = await _dataService.GetPopularShowsData(page); Shows = new ObservableCollection <Show>(showsTest); BusyIndicatorValue = false; } catch (ServiceRequestException) { RaiseNotification(); } catch (Exception e) { _logger.ErrorException(ForExceptions, e); } }