public static TimelineInfoList TimelineFetchInfoList(int sourceId, SourceType sourceType) { return (TimelineRepository.TimelineFetchInfoList( new TimelineDataCriteria { SourceId = new[] { sourceId }, SourceTypeId = (int)sourceType })); }
public static TimelineInfoList TimelineFetchInfoList(IProject project) { return (TimelineRepository.TimelineFetchInfoList( new TimelineDataCriteria { SourceId = new[] { project.ProjectId }, SourceTypeId = (int)SourceType.Project })); }
public static TimelineInfoList TimelineFetchInfoList(IUser user) { return (TimelineRepository.TimelineFetchInfoList( new TimelineDataCriteria { SourceId = new[] { user.UserId }, SourceTypeId = (int)SourceType.User })); }
public static Timeline TimelineSave(Timeline timeline) { if (!timeline.IsValid) { return(timeline); } Timeline result; if (timeline.IsNew) { result = TimelineRepository.TimelineInsert(timeline); } else { result = TimelineRepository.TimelineUpdate(timeline); } return(result); }
public static bool TimelineDelete(int timelineId) { return(TimelineRepository.TimelineDelete( TimelineRepository.TimelineFetch(timelineId))); }