예제 #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 });
     }
 }