0
hakan created
To add a Userrole I use this( from DefaultTenantRoleAndUserBuilder.cs)
_context.UserRoles.Add(new UserRole(adminUserForDefaultTenant.Id, adminRoleForDefaultTenant.Id));
_context.SaveChanges();
But how to remove a Userrole?
1 Answer(s)
-
0
Always use UserManager to add/remove a role to/from a user.