Example #1
0
 // GET: api/ServiceTax/5
 public object Get(string id)
 {
     try
     {
         return(ServiceTaxMdl.GetServiceTax(id));
     }
     catch (Exception e)
     {
         return(e);
     }
 }
Example #2
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 });
     }
 }