public static string ExecuteMethod_ExecuteCreateGroup(string groupName, string accountId) { CreateGroupParameters parameters = new CreateGroupParameters() { AccountID = accountId, GroupName = groupName }; var result = CreateGroup.Execute(parameters); return result.GroupID; }
public static void Execute(CreateGroupParameters parameters) { PrepareParameters(parameters); TBRGroupRoot GroupRoot = CreateGroupImplementation.GetTarget_GroupRoot(parameters.GroupName); TBRAccountRoot AccountRoot = CreateGroupImplementation.GetTarget_AccountRoot(parameters.AccountID); TBEmail[] AccountEmails = CreateGroupImplementation.GetTarget_AccountEmails(AccountRoot); CreateGroupImplementation.ExecuteMethod_AddAsInitiatorToGroupRoot(GroupRoot, AccountEmails); CreateGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot); CreateGroupImplementation.ExecuteMethod_InitializeGroupContentAndMasters(GroupRoot); { // Local block to allow local naming RefreshAccountGroupMembershipsParameters operationParameters = CreateGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(parameters.AccountID, GroupRoot); RefreshAccountGroupMemberships.Execute(operationParameters); } // Local block closing }
private static void PrepareParameters(CreateGroupParameters parameters) { }