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); }
public bool IsInRole(Role role) { return(System.Web.HttpContext.Current.User.IsInRole(IidRole.GetRoleCode(role))); }