Пример #1
0
        public GroupWrapperFull DeleteGroup(Guid groupid)
        {
            SecurityContext.DemandPermissions(Core.Users.Constants.Action_EditGroups, Core.Users.Constants.Action_AddRemoveUser);
            var @group           = GetGroupInfo(groupid);
            var groupWrapperFull = new GroupWrapperFull(group, false);

            CoreContext.GroupManager.DeleteGroup(groupid);

            return(groupWrapperFull);
        }
Пример #2
0
        public GroupWrapperFull DeleteGroup(Guid groupid)
        {
            SecurityContext.DemandPermissions(Core.Users.Constants.Action_EditGroups, Core.Users.Constants.Action_AddRemoveUser);
            var @group           = GetGroupInfo(groupid);
            var groupWrapperFull = new GroupWrapperFull(group, false);

            CoreContext.UserManager.DeleteGroup(groupid);

            MessageService.Send(Request, MessageAction.GroupDeleted, MessageTarget.Create(group.ID), group.Name);

            return(groupWrapperFull);
        }
Пример #3
0
        public GroupWrapperFull DeleteGroup(Guid groupid)
        {
            SecurityContext.DemandPermissions(Core.Users.Constants.Action_EditGroups, Core.Users.Constants.Action_AddRemoveUser);
            var @group = GetGroupInfo(groupid);
            var groupWrapperFull = new GroupWrapperFull(group, false);

            CoreContext.GroupManager.DeleteGroup(groupid);

            MessageService.Send(_context, MessageAction.GroupDeleted, group.Name);

            return groupWrapperFull;
        }