コード例 #1
0
 public bool IsInRole(string role)
 {
     return(roles.Includes(role));
 }
コード例 #2
0
 protected override bool AuthorizeCore(HttpContextBase httpContext)
 {
     return(authorizedRoles.Includes(httpContext.User));
 }