public object Lov() { try { return(ServiceTaxMdl.GetAcctDocOriginLov()); } catch (Exception e) { return(new { state = false, message = "Server Error whiles Fetching Account Origins LOV", exception = e }); } }
// GET: api/ServiceTax/5 public object Get(string id) { try { return(ServiceTaxMdl.GetServiceTax(id)); } catch (Exception e) { return(e); } }
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 }); } }
// GET: api/ServiceTax public object Get() { try { return(ServiceTaxMdl.GetAcctServiceTaxs()); } 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 }); } }