예제 #1
0
 /// <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));
 }
예제 #2
0
        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()));
        }
예제 #3
0
 /// <summary>
 /// 验证权限分组名称是否存在
 /// </summary>
 /// <param name="existInfo">验证信息</param>
 /// <returns></returns>
 public bool ExistAuthorityGroupName(ExistAuthorityGroupNameCmdDto existInfo)
 {
     return(authBusiness.ExistAuthorityGroupName(existInfo));
 }