Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        public string CheckByPhone(string Phone, int id)
        {
            var result = _da.CheckPhone(Phone.Trim(), id);

            return(result ? "false" : "true");
        }