示例#1
0
 public static IHtmlContent IfClaimShow(this IHtmlContent page, HttpContext context, string clainName, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(context, clainName, claimValue) ? page : null);
 }
示例#2
0
 public static bool IfClaim(this RazorPage page, string clainName, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(page.Context, clainName, claimValue));
 }
示例#3
0
 public static string IfClaimShow(this RazorPage page, string clainName, string claimValue)
 {
     return(CustomAuthorization.ValidarClaimsUsuario(page.Context, clainName, claimValue) ? "" : "disabled");
 }