Ejemplo n.º 1
0
        public ActionResult CheckUserRealName(string value)
        {
            var user = _userQueryService.FindOneByNiceName(value);

            if (user != null)
            {
                return(Json(new AjaxViewModel()
                {
                    IsRight = false,
                    Msg = "已经存在该昵称"
                }, JsonRequestBehavior.AllowGet));
            }
            return(Json(new AjaxViewModel()
            {
                IsRight = true
            }, JsonRequestBehavior.AllowGet));
        }