Example #1
0
 // 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 });
     }
 }
Example #2
0
 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 });
     }
 }