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