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