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