示例#1
0
 public bool IsInRole(params Role[] roles)
 {
     foreach (Role role in roles)
     {
         if (System.Web.HttpContext.Current.User.IsInRole(IidRole.GetRoleCode(role)))
         {
             return(true);
         }
     }
     return(false);
 }
示例#2
0
 public bool IsInRole(Role role)
 {
     return(System.Web.HttpContext.Current.User.IsInRole(IidRole.GetRoleCode(role)));
 }