public IActionResult ReversePayment([FromBody] InvoiceVO entity) { string response = _unitOfWork.Invoice.ReversePay(entity.codigo, entity.producto.codigo, entity.cliente.codigo).FirstOrDefault(); TransactionVO transaction = new TransactionVO(); if (response == "0000") { transaction.Code = response; transaction.Description = "Operacion Exitosa"; } else { transaction.Code = "1111"; transaction.Description = "Error en la operacion"; } return(Ok(new { result = transaction.Code, message = transaction.Description })); }
public static bool IsTransactionForFunctionMessage <TFunctionMessage>(this TransactionVO transactionVO) where TFunctionMessage : FunctionMessage, new() { return(transactionVO.Transaction?.IsTransactionForFunctionMessage <TFunctionMessage>() ?? false); }