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