public async Task <IActionResult> CheckNameAsync(String param) { Check.IfNullOrZero(param); var result = await _securityServices.CheckRoleNameAsync(param); var response = new ResponseSimple(); if (!result) { response.Model = "y"; response.IsSuccess = true; response.Message = ""; } else { response.Model = "n"; response.IsSuccess = false; response.Message = "角色名称已存在"; } return(Json(response)); }