/// <summary>
        /// Gets the loyalty card transactions.
        /// </summary>
        /// <param name="cardNumber">The card number.</param>
        /// <param name="rewardPointId">The reward point identifier.</param>
        /// <param name="rowsCount">The rows count.</param>
        /// <returns>The manager response where the enumarable list of loyalty card trabsactions are returned in the Result.</returns>
        public virtual ManagerResponse <GetLoyaltyCardTransactionsResult, IEnumerable <LoyaltyCardTransaction> > GetLoyaltyCardTransactions(string cardNumber, string rewardPointId, int rowsCount)
        {
            var request = new Sitecore.Commerce.Connect.DynamicsRetail.Services.LoyaltyPrograms.GetLoyaltyCardTransactionsRequest(new LoyaltyCard {
                CardNumber = cardNumber, ExternalId = cardNumber
            }, rewardPointId)
            {
                RowsCount = rowsCount
            };
            var result = this.LoyaltyProgramServiceProvider.GetLoyaltyCardTransactions(request);

            if (result.Success && result.LoyaltyCardTransactions != null)
            {
                return(new ManagerResponse <GetLoyaltyCardTransactionsResult, IEnumerable <LoyaltyCardTransaction> >(result, result.LoyaltyCardTransactions));
            }

            result.WriteToSitecoreLog();
            return(new ManagerResponse <GetLoyaltyCardTransactionsResult, IEnumerable <LoyaltyCardTransaction> >(result, new List <LoyaltyCardTransaction>()));
        }
        /// <summary>
        /// Gets the loyalty card transactions.
        /// </summary>
        /// <param name="cardNumber">The card number.</param>
        /// <param name="rewardPointId">The reward point identifier.</param>
        /// <param name="rowsCount">The rows count.</param>
        /// <returns>The manager response where the enumarable list of loyalty card trabsactions are returned in the Result.</returns>
        public virtual ManagerResponse<GetLoyaltyCardTransactionsResult, IEnumerable<LoyaltyCardTransaction>> GetLoyaltyCardTransactions(string cardNumber, string rewardPointId, int rowsCount)
        {
            var request = new Sitecore.Commerce.Connect.DynamicsRetail.Services.LoyaltyPrograms.GetLoyaltyCardTransactionsRequest(new LoyaltyCard { CardNumber = cardNumber, ExternalId = cardNumber }, rewardPointId) { RowsCount = rowsCount };
            var result = this.LoyaltyProgramServiceProvider.GetLoyaltyCardTransactions(request);
            if (result.Success && result.LoyaltyCardTransactions != null)
            {
                return new ManagerResponse<GetLoyaltyCardTransactionsResult, IEnumerable<LoyaltyCardTransaction>>(result, result.LoyaltyCardTransactions);
            }

            Helpers.LogSystemMessages(result.SystemMessages, result);
            return new ManagerResponse<GetLoyaltyCardTransactionsResult, IEnumerable<LoyaltyCardTransaction>>(result, new List<LoyaltyCardTransaction>());
        }