示例#1
0
        public ActionResult CheckName(string name = "")
        {
            RoleViewModel  data   = RoleRepo.CheckName(name);
            ResponseResult result = new ResponseResult();

            if (data.name != null)
            {
                result.Success = false;
            }
            return(Json(new
            {
                success = result.Success
            }, JsonRequestBehavior.AllowGet));
        }