/// <summary>
        /// グループ削除
        /// </summary>
        private async Task GroupDelete()
        {
            var selected = this.Groups.Where(x => x.IsSelected).ToList();

            if (selected.Count() > 0)
            {
                this.IsBusy = true;

                var spaceCommunicator = new SpaceCommunicator(this.SpaceName, this.APIKey);

                await Task.Run(() =>
                {
                    foreach (var group in selected)
                    {
                        // グループ削除
                        spaceCommunicator.DeleteGroup(group.Id);
                        // リストから削除
                        this.Groups.Remove(group);
                    }
                });
                this.IsBusy = false;
            }
        }
        /// <summary>
        /// グループの取得
        /// </summary>
        /// <returns></returns>
        public async Task<IEnumerable<GroupViewModel>> GetSpageGroups()
        {
            var spaceCommunicator = new SpaceCommunicator(this.SpaceName, this.APIKey);
            IEnumerable<GroupViewModel> groups = null;

            await Task.Run(() =>
            {
                var param = new SpaceQuery
                {
                    Offset = 0,
                    Order = CSJSONBacklog.Model.Issues.Order.asc,
                    Count = 100,
                };
                var quary = param.GetParametersForAPI();

                groups = spaceCommunicator.GetGroupList(param).Select(x => new GroupViewModel(x)).ToList();
                //groups = spaceCommunicator.GetGroupList(param).ToList();
            });
            return groups;
        }
        /// <summary>
        /// ユーザー削除
        /// </summary>
        private async Task UserDelete()
        {
            var selected = this.Users.Where(x => x.IsSelected).ToList();

            if (selected.Count() > 0)
            {
                this.IsBusy = true;

                var spaceCommunicator = new SpaceCommunicator(this.SpaceName, this.APIKey);

                await Task.Run(() =>
                {
                    foreach (var user in selected)
                    {
                        // ユーザー削除
                        spaceCommunicator.DeleteUser(user.Id);
                        // リストから削除
                        this.Users.Remove(user);
                    }
                });
                this.IsBusy = false;
            }
        }
        /// <summary>
        /// ユーザーの取得
        /// </summary>
        /// <returns></returns>
        private async Task<IEnumerable<User>> GetSpaceUsers()
        {
            var spaceCommunicator = new SpaceCommunicator(this.SpaceName, this.APIKey);
            IEnumerable<User> users = null;

            await Task.Run(() =>
            {
                users = spaceCommunicator.GetUserList().ToList();
            });
            return users;
        }