Ejemplo n.º 1
0
        private async void GetMoviesByFirstLastYearAndRating(int selectedFirstYear, int selectedLastYear, decimal selectedRating)
        {
            try
            {
                BusyIndicatorValue = true;
                List <Movie> moviesTest = await _dataService.GetSearchedMovies(selectedFirstYear, selectedLastYear, selectedRating);

                Movies             = new ObservableCollection <Movie>(moviesTest);
                BusyIndicatorValue = false;
            }
            catch (ServiceRequestException)
            {
                RaiseNotificationServer();
            }
            catch (Exception e)
            {
                _logger.ErrorException(ForExceptions, e);
            }
        }