Beispiel #1
0
 public object Lov()
 {
     try
     {
         return(TxnDocMdl.GeTxnDocLov());
     }
     catch (Exception e)
     {
         return(e);
     }
 }
Beispiel #2
0
 public object Search(string query)
 {
     try
     {
         return(TxnDocMdl.Search(query));
     }
     catch (Exception e)
     {
         return(e);
     }
 }
Beispiel #3
0
 // GET: api/AcctTxnDocument/5
 public object Get(string id)
 {
     try
     {
         return(TxnDocMdl.GetTxnDoc(id));
     }
     catch (Exception e)
     {
         return(e);
     }
 }
Beispiel #4
0
 // GET: api/AcctTxnDocument
 public object Get()
 {
     try
     {
         return(TxnDocMdl.GetTxnDocs());
     }
     catch (Exception e)
     {
         return(e);
     }
 }
Beispiel #5
0
 public object Check(string code)
 {
     try
     {
         var result = TxnDocMdl.GetTxnDoc(code);
         return(new { state = true, name = result.ATD_NAME });
     }
     catch (Exception)
     {
         return(new { state = false });
     }
 }
Beispiel #6
0
 public object Save([FromBody] MS_ACCT_TXN_DOC document)
 {
     try
     {
         TxnDocMdl.Save(document);
         return(new { state = true, message = "Txn Document Successfully Generated" });
     }
     catch (Exception e)
     {
         return(e);
     }
 }