public static List <Identity.AspNetIdentityRole> AspNetIdentityRoles(this UserProfile userProfile) { if (userProfile == null) { return(new List <Identity.AspNetIdentityRole>()); } Identity.AspNetIdentityContext identityCtx = new Identity.AspNetIdentityContext(); return(identityCtx.AspNetIdentityRoles(userProfile)); }
public static Identity.AspNetIdentityUser AspNetIdentityUser(this UserProfile userProfile) { if (userProfile == null) { return(null); } Identity.AspNetIdentityContext identityCtx = new Identity.AspNetIdentityContext(); return(identityCtx.AspNetIdentityUser(userProfile)); }
public static ICollection <Identity.AspNetIdentityUserLogin> AspNetIdentityUserLogins(this UserProfile userProfile) { Identity.AspNetIdentityContext identityCtx = new Identity.AspNetIdentityContext(); return(identityCtx.AspNetIdentityUserLogins(userProfile)); }