Example #1
0
 public void RevokeRole(Role role)
 {
     ThrowIfDisabled();
       Apply(
     new RoleRevokedFromUserAccount(Id, role.Id));
 }
Example #2
0
 public void RemoveRole(Role role)
 {
     ThrowIfArchived();
       Apply(
     new RemovedRoleFromRoleGroup(Id, role.Id));
 }
Example #3
0
 public void GrantRole(Role role)
 {
     ThrowIfDisabled();
       Apply(
     new RoleGrantedToUserAccount(Id, role.Id));
 }
Example #4
0
 public void AddRole(Role role)
 {
     ThrowIfArchived();
       Apply(
     new AddedRoleToRoleGroup(Id, role.Id));
 }