public static void GET_BankInfoBasicByRN(SqlString URL, SqlString rn) { try { var BankInfoResult = new BankInfoBasic(); string Result = APIConsumer.GETMethod <BankInfoBasic>(URL.ToString(), rn.ToString(), ref BankInfoResult); var Header = new SqlMetaData[] { new SqlMetaData(nameof(BankInfoResult.Code), SqlDbType.VarChar, 100), new SqlMetaData(nameof(BankInfoResult.Name), SqlDbType.VarChar, 50), new SqlMetaData(nameof(BankInfoResult.Message), SqlDbType.VarChar, 100), new SqlMetaData(nameof(BankInfoResult.rn), SqlDbType.VarChar, 100), }; Helper.SendResults(Header , BankInfoResult.Code , BankInfoResult.Name , BankInfoResult.Message , BankInfoResult.rn ); } catch (Exception ex) { throw new Exception(ex.Message.ToString()); } }
public static void APICaller_GET_Auth(SqlString URL, SqlString Authorization) { try { string Result = APIConsumer.GETMethod(URL.ToString(), Authorization.ToString()); Helper.SendResultValue("Result", Result); } catch (Exception ex) { Helper.SendResultValue("Error", ex.Message.ToString()); } }
public static SqlInt32 APICaller_GET_Auth(SqlString URL, SqlString Authorization) { SqlInt32 ExecutionResult = APIConsumer.DEFAULT_EXECUTION_RESULT; try { string Result = APIConsumer.GETMethod(URL.ToString(), Authorization.ToString()); Helper.SendResultValue(APIConsumer.DEFAULT_COLUMN_RESULT, Result); } catch (Exception ex) { Helper.SendResultValue(APIConsumer.DEFAULT_COLUMN_ERROR, ex.Message.ToString()); ExecutionResult = APIConsumer.FAILED_EXECUTION_RESULT; } return(ExecutionResult); }