public object Lov() { try { return(PaymentModeMdl.GetPaymntModeLov()); } catch (Exception e) { return(new { state = false, messaage = "Server Error", exception = e }); } }
public object Search(string query) { try { return(PaymentModeMdl.Search(query)); } catch (Exception e) { return(new { state = false, messaage = "Server Error", exception = e }); } }
// GET: api/ public dynamic Get(string id) { try { return(PaymentModeMdl.GetPaymntMode(id)); } catch (Exception e) { return(new { state = false, messaage = "Server Error", exception = e }); } }
public object Check(string code) { try { var result = PaymentModeMdl.GetPaymntMode(code); return(result != null ? (object)new { state = true, name = result.PM_NAME } : new { state = false }); } catch (Exception e) { return(new { state = false, messaage = "Server Error", exception = e }); } }