private void SetSortingProperties(SearchEventRegistrantsRequest listRequest)
 {
     if (!string.IsNullOrEmpty(_viewModel.SortColumn))
     {
         listRequest.SortField = _viewModel.SortColumn;
         listRequest.SortDirection = _viewModel.SortDirection.ToLowerInvariant() == "asc" ? "Ascending" : "Descending";
     }
 }
        private void QueryData(ConvertServiceRequest request)
        {
            var listRequest = new SearchEventRegistrantsRequest
            {
                EventOccurrenceAttendeeId = int.Parse(_attendeeId)
            };
            var response = ProcessRequest<SearchEventRegistrantsResponse>(listRequest);

            _registrantDetail = response.Registrants.FirstOrDefault();
        }
        private SearchEventRegistrantsResponse QueryData()
        {
            var filterField = _viewModel.FilterFields.Single(f => f.FieldName == "SelectRegistrant");
            var criteria = (filterField.SelectedOption == null) ? string.Empty : filterField.SelectedOption.Id.ToString();

            var request = new SearchEventRegistrantsRequest
            {
                EmailAddress = criteria,
                PageSize = _viewModel.PageSize,
                RequestedPage = _viewModel.PageNumber
            };

            SetSortingProperties(request);

            return ProcessRequest<SearchEventRegistrantsResponse>(request);
        }