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; }
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; }