示例#1
0
        public Group EditGroup(int groupId, string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ChalkableException("Invalid name param. Name parameter is empty");
            }
            var group = GroupStorage.GetById(groupId);

            EnsureInGroupModifyPermission(group);
            group.Name = name;
            GroupStorage.Update(group);
            return(group);
        }