Exemple #1
0
        public static void Execute(InviteMemberToGroupParameters parameters)
        {
            PrepareParameters(parameters);
            TBRGroupRoot      GroupRoot       = InviteMemberToGroupImplementation.GetTarget_GroupRoot(parameters.GroupID);
            TBEmailValidation EmailValidation = InviteMemberToGroupImplementation.GetTarget_EmailValidation(parameters.MemberEmailAddress, parameters.GroupID);
            string            AccountID       = InviteMemberToGroupImplementation.GetTarget_AccountID(parameters.MemberEmailAddress);

            InviteMemberToGroupImplementation.ExecuteMethod_AddAsPendingInvitationToGroupRoot(parameters.MemberEmailAddress, GroupRoot);
            InviteMemberToGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot, EmailValidation);
            InviteMemberToGroupImplementation.ExecuteMethod_SendEmailConfirmation(EmailValidation, GroupRoot);

            {     // Local block to allow local naming
                RefreshAccountGroupMembershipsParameters operationParameters = InviteMemberToGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID);
                RefreshAccountGroupMemberships.Execute(operationParameters);
            }     // Local block closing
        }
 private static void PrepareParameters(InviteMemberToGroupParameters parameters)
 {
 }
        public static void Execute(InviteMemberToGroupParameters parameters)
        {
            PrepareParameters(parameters);
                    TBRGroupRoot GroupRoot = InviteMemberToGroupImplementation.GetTarget_GroupRoot(parameters.GroupID);
                TBEmailValidation EmailValidation = InviteMemberToGroupImplementation.GetTarget_EmailValidation(parameters.MemberEmailAddress, parameters.GroupID);
                string AccountID = InviteMemberToGroupImplementation.GetTarget_AccountID(parameters.MemberEmailAddress);
                InviteMemberToGroupImplementation.ExecuteMethod_AddAsPendingInvitationToGroupRoot(parameters.MemberEmailAddress, GroupRoot);
                InviteMemberToGroupImplementation.ExecuteMethod_StoreObjects(GroupRoot, EmailValidation);
                InviteMemberToGroupImplementation.ExecuteMethod_SendEmailConfirmation(EmailValidation, GroupRoot);

            { // Local block to allow local naming
            RefreshAccountGroupMembershipsParameters operationParameters = InviteMemberToGroupImplementation.RefreshAccountAndGroupContainers_GetParameters(GroupRoot, AccountID);
            RefreshAccountGroupMemberships.Execute(operationParameters);

            } // Local block closing
        }
Exemple #4
0
 private static void PrepareParameters(InviteMemberToGroupParameters parameters)
 {
 }