Esempio n. 1
0
        public BE.PaymentInfo GetPaymentInfoByPaymentInfoGuid(Guid paymentInfoGuid)
        {
            DA.PaymentInfoGateway gateway = new DA.PaymentInfoGateway();
            BE.PaymentInfo result = new BE.PaymentInfo();
            try
            {
                result = gateway.GetByPK(paymentInfoGuid).ToBusinessEntity();
            }
            catch (DataAccess.DataAccessException)
            {
                return null;
            }

            return result;
        }
Esempio n. 2
0
        public static BE.PaymentInfo ToBusinessEntity(this DC.PaymentInfo dcPaymentInfo)
        {
            BE.PaymentInfo paymentInfoResult = new BE.PaymentInfo()
            {
                PaymentInfoGuid = dcPaymentInfo.PaymentInfoGuid,
                PaymentInfoID = dcPaymentInfo.PaymentInfoID,
                AmazonToken = dcPaymentInfo.AmazonToken,
            };

            return paymentInfoResult;
        }