public static IQueryable<Sprint> OpenSprints( this ISession session ) { return session.AllSprints() .Where( x => x.Status.StatusCd == 'A' && x.Status.Category != SprintStatusCategory.Complete ); }
public static IQueryable<Sprint> CurrentSprints( this ISession session ) { return session.AllSprints() .Where( x => x.Status.StatusCd == 'A' && x.Status.Category == SprintStatusCategory.Active && x.StartDate != null && x.StartDate <= DateTime.Now.Date && (x.EndDate == null || x.EndDate >= DateTime.Now.Date) ); }