Exemplo n.º 1
0
 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;
     }));
 }
Exemplo n.º 2
0
 public async Task <IHttpActionResult> deleteBillPayTypes(BILL_PAY_TYPESVM billPay)
 {
     return(Ok(await billPaytypeService.DeleteAsync(billPay)));
 }
Exemplo n.º 3
0
 public async Task <IHttpActionResult> insertBillPayTypes(BILL_PAY_TYPESVM billPay)
 {
     return(Ok(await billPaytypeService.InsertAsync(billPay)));
 }