Пример #1
0
        public ActionResult IsExsitUser(string username)
        {
            var result = userApp.CheckUserName(username);

            if (result)
            {
                return(Content(new AjaxResult {
                    state = ResultType.error.ToString(), message = "该用户名已存在"
                }.ToJson()));
            }
            else
            {
                return(Content(new AjaxResult {
                    state = ResultType.success.ToString(), message = "success"
                }.ToJson()));
            }
        }