// GET: api/cover/ public dynamic Get(string code) { try { return(TransactionStructureMdl.get_transactionstructure(code)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Check(string code) { try { var result = TransactionStructureMdl.get_transactionstructure(code); return(result != null ? (object)new { state = true, name = result.TST_NAME } : new { state = false }); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }