/// <summary>
 /// Does the transaction.
 /// </summary>
 /// <param name="creditCardInfo">The credit card info.</param>
 /// <returns></returns>
 public TransactionResult DoTransaction(CreditCardDetails creditCardInfo, string bayID, string kiosksMACId)
 {
     TransactionResult result = null;
     try
     {
         Task.Factory.StartNew(() => result = m_businessLogic.DoParkingTransaction(creditCardInfo, bayID, kiosksMACId));
     }
     catch (Exception ex)
     {
         //TODO: log exception
     }
     return result;
 }
Beispiel #2
0
        /// <summary>
        /// Does the transaction.
        /// </summary>
        /// <param name="creditCardInfo">The credit card info.</param>
        /// <returns></returns>
        public TransactionResult DoTransaction(CreditCardDetails creditCardInfo, string bayID, string kiosksMACId)
        {
            TransactionResult result = null;

            try
            {
                Task.Factory.StartNew(() => result = m_businessLogic.DoParkingTransaction(creditCardInfo, bayID, kiosksMACId));
            }
            catch (Exception ex)
            {
                //TODO: log exception
            }
            return(result);
        }
Beispiel #3
0
        /// <summary>
        /// Determines whether [is valid credit card] [the specified credit card].
        /// </summary>
        /// <param name="creditCard">The credit card.</param>
        /// <returns>
        ///   <c>true</c> if [is valid credit card] [the specified credit card]; otherwise, <c>false</c>.
        /// </returns>
        public bool IsValidCreditCard(CreditCardDetails creditCardInfo)
        {
            bool isValidCreditCard = false;

            try
            {
                Task.Factory.StartNew(() => isValidCreditCard = m_businessLogic.IsValidCreditCard(creditCardInfo));
            }
            catch (Exception ex)
            {
                //TODO: log exception
            }
            return(isValidCreditCard);
        }
Beispiel #4
0
        /// <summary>
        /// Determines whether [is valid credit card] [the specified credit card].
        /// </summary>
        /// <param name="creditCard">The credit card.</param>
        /// <returns>
        ///   <c>true</c> if [is valid credit card] [the specified credit card]; otherwise, <c>false</c>.
        /// </returns>
        internal bool IsValidCreditCard(CreditCardDetails creditCard)
        {
            bool isValid = false;

            try
            {
                //TODO: do some logic here
                isValid = true;
            }
            catch (Exception ex)
            {
                //TODO: log exception
            }
            return(isValid);
        }
        /// <summary>
        /// Does the parking transaction.
        /// </summary>
        /// <param name="creditCardInfo">The credit card info.</param>
        /// <returns></returns>
        internal TransactionResult DoParkingTransaction(CreditCardDetails creditCardInfo, string bayID, string kiosksMACId)
        {
            TransactionResult result = null;
            try
            {
                //TODO: add transaction logic
                result = new TransactionResult();
                result.Result = "Successful";
                result.TransactionID = "T001";

                StoreTransactionResult(result);
            }
            catch (Exception ex)
            {
                //TODO: log exception
            }
            return result;
        }
Beispiel #6
0
        /// <summary>
        /// Does the parking transaction.
        /// </summary>
        /// <param name="creditCardInfo">The credit card info.</param>
        /// <returns></returns>
        internal TransactionResult DoParkingTransaction(CreditCardDetails creditCardInfo, string bayID, string kiosksMACId)
        {
            TransactionResult result = null;

            try
            {
                //TODO: add transaction logic
                result               = new TransactionResult();
                result.Result        = "Successful";
                result.TransactionID = "T001";

                StoreTransactionResult(result);
            }
            catch (Exception ex)
            {
                //TODO: log exception
            }
            return(result);
        }
 /// <summary>
 /// Determines whether [is valid credit card] [the specified credit card].
 /// </summary>
 /// <param name="creditCard">The credit card.</param>
 /// <returns>
 ///   <c>true</c> if [is valid credit card] [the specified credit card]; otherwise, <c>false</c>.
 /// </returns>
 public bool IsValidCreditCard(CreditCardDetails creditCardInfo)
 {
     bool isValidCreditCard = false;
     try
     {
         Task.Factory.StartNew(() => isValidCreditCard = m_businessLogic.IsValidCreditCard(creditCardInfo));
     }
     catch (Exception ex)
     {
         //TODO: log exception
     }
     return isValidCreditCard;
 }
 /// <summary>
 /// Determines whether [is valid credit card] [the specified credit card].
 /// </summary>
 /// <param name="creditCard">The credit card.</param>
 /// <returns>
 ///   <c>true</c> if [is valid credit card] [the specified credit card]; otherwise, <c>false</c>.
 /// </returns>
 internal bool IsValidCreditCard(CreditCardDetails creditCard)
 {
     bool isValid = false;
     try
     {
         //TODO: do some logic here
         isValid = true;
     }
     catch (Exception ex)
     {
         //TODO: log exception
     }
     return isValid;
 }