public static int GetRoleUser(this HttpContext context) { return(int.Parse(RetrieveTokken.GetClaim("role", context))); }
public static int GetRulePlaceUser(this HttpContext context) { string t = RetrieveTokken.GetClaim("idRulePlace", context); return(int.Parse(t != null ? t : 0.ToString())); }
public static int GetIdUser(this HttpContext context) { return(int.Parse(RetrieveTokken.GetClaim("unique_name", context))); }
public static string GetRoleUser(this HttpContext context) { return(RetrieveTokken.GetClaim("role", context)); }