private static ReadOnlyCollection <StockCountJournalTransaction> GetStockCountJournalTransFromAx(RequestContext context, string journalId)
            {
                ChannelConfiguration channelConfiguration = context.GetChannelConfiguration();

                var journalTransactionsRequest = new GetStockCountJournalTransactionsRealtimeRequest(journalId, channelConfiguration.InventLocation);
                ReadOnlyCollection <StockCountJournalTransaction> journalTransactions = context.Execute <EntityDataServiceResponse <StockCountJournalTransaction> >(journalTransactionsRequest).PagedEntityCollection.Results;

                return(journalTransactions);
            }
            /// <summary>
            /// Gets stock count journals with transactions from AX by location and journal ids.
            /// </summary>
            /// <param name="request">The request.</param>
            /// <returns>The collection of <see cref="StockCountJournalTransaction"/> items.</returns>
            private static EntityDataServiceResponse <StockCountJournalTransaction> GetStockCountJournalTransactions(GetStockCountJournalTransactionsRealtimeRequest request)
            {
                var transactionClient = new TransactionService.TransactionServiceClient(request.RequestContext);
                PagedResult <StockCountJournalTransaction> stockCountJournals = transactionClient.GetStockCountJournalsTransaction(request.JournalId, request.LocationId);

                return(new EntityDataServiceResponse <StockCountJournalTransaction>(stockCountJournals));
            }