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