Esempio n. 1
0
 /// <summary>
 /// Bizs the update payment.
 /// </summary>
 /// <param name="bizPayment">The biz payment.</param>
 /// <returns>System.String.</returns>
 public string BizUpdatePayment(BizPayment bizPayment)
 {
     return(BizCall(
                new Action(() =>
     {
         crudFuntion.UpdatePayment(bizPayment);
     }
                           )
                ));
 }
Esempio n. 2
0
 /// <summary>
 /// Bizs the insert payment.
 /// </summary>
 /// <param name="bizPayment">The biz payment.</param>
 /// <returns>System.String.</returns>
 public string BizInsertPayment(BizPayment bizPayment)
 {
     return(BizCall(
                new Action(() =>
     {
         crudFuntion.InsertPayment(bizPayment);
     }
                           )
                ));
 }
Esempio n. 3
0
        /// <summary>
        /// Datas the payment to biz payment.
        /// </summary>
        /// <param name="DataPayment">The data payment.</param>
        /// <returns>BizPayment.</returns>
        public static BizPayment DataPaymentToBizPayment(this SYSGetPayment_Result DataPayment)
        {
            BizPayment bizPayment = new BizPayment
            {
                Id            = DataPayment.Id,
                UserId        = 0,
                PaymentStatus = 0,
                Nombre        = DataPayment.Nombre,
                Amount        = DataPayment.Amount,
                StatusName    = DataPayment.StatusName,
                PaymentDate   = DataPayment.PaymentDate,
            };

            return(bizPayment);
        }
Esempio n. 4
0
        /// <summary>
        /// Bizs the payment to web payment.
        /// </summary>
        /// <param name="DataPayment">The data payment.</param>
        /// <returns>WebPayment.</returns>
        public static WebPayment BizPaymentToWebPayment(this BizPayment DataPayment)
        {
            WebPayment webPayment = new WebPayment
            {
                Id            = DataPayment.Id,
                UserId        = DataPayment.UserId,
                PaymentStatus = DataPayment.PaymentStatus,
                Nombre        = DataPayment.Nombre,
                Amount        = DataPayment.Amount,
                StatusName    = DataPayment.StatusName,
                PaymentDate   = DataPayment.PaymentDate,
            };

            return(webPayment);
        }
Esempio n. 5
0
        /// <summary>
        /// Webs the payment to biz payment.
        /// </summary>
        /// <param name="DataPayment">The data payment.</param>
        /// <returns>BizPayment.</returns>
        public static BizPayment WebPaymentToBizPayment(this WebPayment DataPayment)
        {
            BizPayment bizPayment = new BizPayment
            {
                Id            = DataPayment.Id,
                UserId        = DataPayment.UserId,
                PaymentStatus = DataPayment.PaymentStatus,
                Nombre        = DataPayment.Nombre,
                Amount        = DataPayment.Amount,
                StatusName    = DataPayment.StatusName,
                PaymentDate   = DataPayment.PaymentDate,
            };

            return(bizPayment);
        }