Esempio n. 1
0
 internal AdminsFunctions(IPrincipalAdmin principalAdmin)
 {
     _db = principalAdmin.Principal.ServiceProvider.GetRequiredService <IAdminsDbContext>();
 }
Esempio n. 2
0
 public static AdminRolesFunctions AdminRoles(this IPrincipalAdmin admin) => new AdminRolesFunctions(admin);