public async Task <IActionResult> CheckNameAsync(String param) { #region 参数验证 Check.IfNullOrZero(param); #endregion var result = await _appServices.CheckAppTypeNameAsync(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)); }