public async Task <string> pendingOrderPayment(PaymentVoucherDomainModel paymentVoucherDM) { string status = ""; int condition = 0; if (condition > 0) { List <tblvch> uList = new List <tblvch>(); uList = await voucherRepository.GetAll(); } using (abuhamzapetstoreEntities db = new abuhamzapetstoreEntities()) { try { var result = db.stpPurchaseOrderPayment(paymentVoucherDM.supplierId, paymentVoucherDM.amountPaid, paymentVoucherDM.remaingAmount, paymentVoucherDM.voucherNumber); } catch (Exception ex) { status = ex.Message; } } return(status); }
public async Task <string> pendingOrderPayment(PaymentVoucher paymentVoucher) { PaymentVoucherDomainModel paymentVoucherDM = new PaymentVoucherDomainModel(); AutoMapper.Mapper.Map(paymentVoucher, paymentVoucherDM); return(await voucherBusiness.pendingOrderPayment(paymentVoucherDM)); }