Example #1
0
 public static IQueryable<Sprint> OpenSprints( this ISession session )
 {
     return session.AllSprints()
     .Where( x => x.Status.StatusCd == 'A' && x.Status.Category != SprintStatusCategory.Complete );
 }
Example #2
0
 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) );
 }