public static StoryInfoList StoryFetchInfoList(ISprint sprint) { ProjectUserRepository.AuthorizeProjectUser(sprint.ProjectId); return(StoryInfoList.FetchStoryInfoList( new StoryDataCriteria { ProjectId = new[] { sprint.ProjectId }, SprintId = sprint.SprintId })); }
public static StoryInfoList StoryFetchInfoList(IProject project, bool?isArchived) { ProjectUserRepository.AuthorizeProjectUser(project.ProjectId); return(StoryInfoList.FetchStoryInfoList( new StoryDataCriteria { ProjectId = new[] { project.ProjectId }, IsArchived = isArchived })); }
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)); }
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 })); }