public static GetTransactionConfigurateResponse TransactionConfigurate(int AnchorTransactionID, int TransactionTypeID, Transactions Transaction) { GetTransactionConfigurateResponse response = new GetTransactionConfigurateResponse(); response.Error = new Handler.ErrorObject(); try { TransactionBussines.GetTransactionResponse transac = new TransactionBussines.GetTransactionResponse() { Transaction = Transaction }; GetTransactionConfigurateRequest request = new GetTransactionConfigurateRequest() { AnchorTransactionID = AnchorTransactionID, TransactionTypeID = TransactionTypeID }; request.TransactionID = Convert.ToInt16(TransactionBussines.Insert.Transaction(transac).Message); var result = TransactionConfigurates(request); response.Message = result.Message; } catch (Exception ex) { response.Error.InfoError(ex); } return(response); }
public static GetTransactionConfigurateResponse TransactionConfigurate(Transactions Transaction) { GetTransactionConfigurateResponse response = new GetTransactionConfigurateResponse(); response.Error = new Handler.ErrorObject(); try { TransactionBussines.GetTransactionResponse transac = new TransactionBussines.GetTransactionResponse() { Transaction = Transaction }; string result = TransactionBussines.Update.Transaction(transac).Message; response.Message = result; } catch (Exception ex) { response.Error.InfoError(ex); } return(response); }