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