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