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