public ActionResult CheckEmail(string key, string txt, int id) { if (key == Keyapi) { var b = _da.CheckEmail(txt, id); return(Json(b ? 1 : 0, JsonRequestBehavior.AllowGet)); } return(Json(0, JsonRequestBehavior.AllowGet)); }
public string CheckByEmail(string Email, int id) { var result = _da.CheckEmail(Email.Trim(), id); return(result ? "false" : "true"); }
/// <summary> /// 检测邮箱是否已经被通过验证 /// </summary> /// <param name="email"></param> /// <returns></returns> public static bool CheckEmail(string email) { return(CustomerDA.CheckEmail(email)); }