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;
 }
Ejemplo n.º 2
0
        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)
 {
 }
        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
        }
Ejemplo n.º 5
0
 private static void PrepareParameters(CreateGroupParameters parameters)
 {
 }