/// <summary> /// 验证权限分组名称是否存在 /// </summary> /// <param name="existInfo">验证信息</param> /// <returns></returns> public bool ExistAuthorityGroupName(ExistAuthorityGroupNameCmdDto existInfo) { if (existInfo == null) { return(false); } return(authorityGroupService.ExistGroupName(existInfo.GroupName, existInfo.ExcludeGroupId)); }
public ActionResult CheckAuthorityGroupName(AuthorityGroupViewModel group) { ExistAuthorityGroupNameCmdDto existInfo = new ExistAuthorityGroupNameCmdDto() { GroupName = group.Name, ExcludeGroupId = group.SysNo }; bool allowUse = !authService.ExistAuthorityGroupName(existInfo); return(Content(allowUse.ToString().ToLower())); }
/// <summary> /// 验证权限分组名称是否存在 /// </summary> /// <param name="existInfo">验证信息</param> /// <returns></returns> public bool ExistAuthorityGroupName(ExistAuthorityGroupNameCmdDto existInfo) { return(authBusiness.ExistAuthorityGroupName(existInfo)); }