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