Exemplo n.º 1
0
        private async void GetMoviesByCompany(string company, int page)
        {
            try
            {
                BusyIndicatorValue = true;
                var          companyNumber = RepositoryCompanies.GetCompanyId(company);
                List <Movie> moviesTest    = await _dataService.GetListOfMoviesByCompany(companyNumber, page);

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