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