// GET: api/conditionsclauses/ public dynamic Get(string code) { try { return(ConditionsClausesMdl.get_conditionclause(code)); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }
public object Check(string code) { try { var result = ConditionsClausesMdl.get_conditionclause(code); return(result != null ? (object)new { state = true, name = result.CCL_NAME } : new { state = false }); } catch (Exception e) { return(new { state = false, message = "Server Error", exception = e }); } }