public static HourInfoList HourFetchInfoList(HourDataCriteria criteria) { criteria.ProjectId = ProjectRepository.ProjectFetchInfoList() .Select(row => row.ProjectId) .ToArray(); return(HourInfoList.FetchHourInfoList(criteria)); }
public static HourInfoList HourFetchInfoList(IUser user) { return(HourInfoList.FetchHourInfoList( new HourDataCriteria { UserId = user.UserId })); }
public static HourInfoList HourFetchInfoList(IProject project) { return(HourInfoList.FetchHourInfoList( new HourDataCriteria { ProjectId = new[] { project.ProjectId } })); }
public static HourInfoList HourFetchInfoList(IStory story) { return(HourInfoList.FetchHourInfoList( new HourDataCriteria { StoryId = story.StoryId })); }
public static HourInfoList HourFetchInfoList(IUser user, DateTime dateFrom, DateTime dateTo) { return(HourInfoList.FetchHourInfoList( new HourDataCriteria { UserId = user.UserId, Date = new DateRangeCriteria(dateFrom, dateTo) })); }
public static HourInfoList HourFetchInfoList(ISprint sprint) { return(HourInfoList.FetchHourInfoList( new HourDataCriteria { ProjectId = new[] { sprint.ProjectId }, SprintId = sprint.SprintId })); }