Esempio n. 1
0
 public JsonResult ValidateDescription(string Description)
 {
     if (!BadWordsHelper.HasBadWord(Description))
     {
         return(Json(true, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(false, JsonRequestBehavior.AllowGet));
     }
 }
Esempio n. 2
0
 public JsonResult NickNameExists(string nickName)
 {
     if (!MemberService.ExistsNickName(nickName) && !BadWordsHelper.HasBadWord(nickName))
     {
         return(Json(true, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(false, JsonRequestBehavior.AllowGet));
     }
 }