Пример #1
0
 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));
 }
Пример #2
0
        public string CheckByEmail(string Email, int id)
        {
            var result = _da.CheckEmail(Email.Trim(), id);

            return(result ? "false" : "true");
        }
Пример #3
0
 /// <summary>
 ///  检测邮箱是否已经被通过验证
 /// </summary>
 /// <param name="email"></param>
 /// <returns></returns>
 public static bool CheckEmail(string email)
 {
     return(CustomerDA.CheckEmail(email));
 }