コード例 #1
0
        public static StoryInfoList StoryFetchInfoList(ISprint sprint)
        {
            ProjectUserRepository.AuthorizeProjectUser(sprint.ProjectId);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = new[] { sprint.ProjectId },
                SprintId = sprint.SprintId
            }));
        }
コード例 #2
0
        public static StoryInfoList StoryFetchInfoList(IProject project, bool?isArchived)
        {
            ProjectUserRepository.AuthorizeProjectUser(project.ProjectId);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = new[] { project.ProjectId },
                IsArchived = isArchived
            }));
        }
コード例 #3
0
        public static StoryInfoList StoryFetchInfoList(StoryDataCriteria criteria)
        {
            var projects = ProjectRepository.ProjectFetchInfoList()
                           .Select(row => row.ProjectId);

            if (criteria.ProjectId == null)
            {
                criteria.ProjectId = projects.ToArray();
            }

            return(StoryInfoList.FetchStoryInfoList(criteria));
        }
コード例 #4
0
        public static StoryInfoList StoryFetchInfoList(IProject[] projects, bool?isArchived)
        {
            var projectIds = projects.Select(row => row.ProjectId).ToArray();

            ProjectUserRepository.AuthorizeProjectUser(projectIds);

            return(StoryInfoList.FetchStoryInfoList(
                       new StoryDataCriteria
            {
                ProjectId = projectIds,
                IsArchived = isArchived
            }));
        }