public ActionResult CheckParent(string key, string txt) { if (key == Keyapi) { var b = _da.CheckParent(txt); return(Json(b ? 1 : 0, JsonRequestBehavior.AllowGet)); } return(Json(0, JsonRequestBehavior.AllowGet)); }
public string CheckByParent(string Parent) { var result = _da.CheckParent(Parent); return(result == false ? "false" : "true"); }