public static void Execute(AssignCollaboratorRoleParameters parameters) { PrepareParameters(parameters); TBRGroupRoot GroupRoot = AssignCollaboratorRoleImplementation.GetTarget_GroupRoot(parameters.GroupID); Collaborator Collaborator = AssignCollaboratorRoleImplementation.GetTarget_Collaborator(parameters.GroupContainer, parameters.CollaboratorID); string AccountID = AssignCollaboratorRoleImplementation.GetTarget_AccountID(Collaborator); TBRAccountRoot AccountRoot = AssignCollaboratorRoleImplementation.GetTarget_AccountRoot(AccountID); string EmailAddress = AssignCollaboratorRoleImplementation.GetTarget_EmailAddress(GroupRoot, AccountRoot); TBCollaboratorRole TBCollaboratorRole = AssignCollaboratorRoleImplementation.GetTarget_TBCollaboratorRole(GroupRoot, EmailAddress); AssignCollaboratorRoleImplementation.ExecuteMethod_AssignCollaboratorRole(parameters.RoleToAssign, TBCollaboratorRole); AssignCollaboratorRoleImplementation.ExecuteMethod_StoreObjects(GroupRoot); { // Local block to allow local naming RefreshAccountGroupMembershipsParameters operationParameters = AssignCollaboratorRoleImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID); RefreshAccountGroupMemberships.Execute(operationParameters); } // Local block closing }
private static void PrepareParameters(AssignCollaboratorRoleParameters parameters) { }