public Task <bool> InsertAsync(BILL_PAY_TYPESVM entity) { return(Task.Run <bool>(() => { BILL_PAY_TYPES bpt = new BILL_PAY_TYPES { BillPayTypeID = entity.BillPayTypeID, BillMasterID = entity.BillMasterID, AccountID = entity.AccountID, PayTypeID = entity.PayTypeID, PayTypeValue = entity.PayTypeValue, BankCommissionRate = entity.BankCommissionRate, BankCommissionValue = entity.BankCommissionValue, MaxCommission = entity.MaxCommission, CommissionTaxRate = entity.CommissionTaxRate, CommissionTaxValue = entity.CommissionTaxValue }; billPayTypeRepo.Add(bpt); return true; })); }
public async Task <IHttpActionResult> deleteBillPayTypes(BILL_PAY_TYPESVM billPay) { return(Ok(await billPaytypeService.DeleteAsync(billPay))); }
public async Task <IHttpActionResult> insertBillPayTypes(BILL_PAY_TYPESVM billPay) { return(Ok(await billPaytypeService.InsertAsync(billPay))); }