public ActionResult CheckPhone(string key, string txt, int id) { if (key == Keyapi) { var b = _da.CheckPhone(txt, id); return(Json(b ? 1 : 0, JsonRequestBehavior.AllowGet)); } return(Json(0, JsonRequestBehavior.AllowGet)); }
public string CheckByPhone(string Phone, int id) { var result = _da.CheckPhone(Phone.Trim(), id); return(result ? "false" : "true"); }