ProjectFetchInfoList() public static method

public static ProjectFetchInfoList ( ) : ProjectInfoList
return ProjectInfoList
        public static HourInfoList HourFetchInfoList(HourDataCriteria criteria)
        {
            criteria.ProjectId = ProjectRepository.ProjectFetchInfoList()
                                 .Select(row => row.ProjectId)
                                 .ToArray();

            return(HourInfoList.FetchHourInfoList(criteria));
        }
        public static void AuthorizeProjectUser(int projectId, int userId)
        {
            var projects = ProjectRepository.ProjectFetchInfoList();

            if (!projects.Any(project => project.ProjectId == projectId))
            {
                throw new SecurityException("You are not a member of this project.");
            }
        }
Example #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));
        }
 public static ProjectInfoList ProjectFetchInfoList()
 {
     return(ProjectRepository.ProjectFetchInfoList(new ProjectDataCriteria()));
 }