public async Task <IActionResult> CreateRoleAsync(IFormCollection forms, Int32 roleId = 0) { #region 参数验证 Check.IfNullOrZero(forms); #endregion if (roleId != 0) { await _securityServices.ModifyRoleAsync(WapperRoleDto(forms)); } else { await _securityServices.AddNewRoleAsync(WapperRoleDto(forms)); } return(Json(new ResponseSimple { IsSuccess = true, Message = "添加角色成功" })); }