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 GetPopularMovies(int page) { try { BusyIndicatorValue = true; List <Movie> moviesTest = await _dataService.GetPopularMoviesData(page); Movies = new ObservableCollection <Movie>(moviesTest); BusyIndicatorValue = false; } catch (ServiceRequestException) { RaiseNotificationServer(); } catch (Exception e) { _logger.ErrorException(ForExceptions, e); } }