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