コード例 #1
0
 public object Lov()
 {
     try
     {
         return(ServiceTaxMdl.GetAcctDocOriginLov());
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error whiles Fetching Account Origins LOV", exception = e });
     }
 }
コード例 #2
0
 // GET: api/ServiceTax/5
 public object Get(string id)
 {
     try
     {
         return(ServiceTaxMdl.GetServiceTax(id));
     }
     catch (Exception e)
     {
         return(e);
     }
 }
コード例 #3
0
 public object Search(string query)
 {
     try
     {
         return(ServiceTaxMdl.Search(query));
     }
     catch (Exception e)
     {
         return(new { state = false, message = "Server Error whiles Searching Account Origins", exception = e });
     }
 }
コード例 #4
0
 // GET: api/ServiceTax
 public object Get()
 {
     try
     {
         return(ServiceTaxMdl.GetAcctServiceTaxs());
     }
     catch (Exception e)
     {
         return(e);
     }
 }
コード例 #5
0
 public object Check(string code)
 {
     try
     {
         var result = ServiceTaxMdl.GetServiceTax(code);
         return(new { state = true, name = result.TX_TAX_NAME });
     }
     catch (Exception e)
     {
         return(new { state = false, exception = e });
     }
 }