public static bool IsOverDue(this ICompletableCalendarPeriod @this) { if (@this.IsCompleted()) { return(false); } return(@this.EndDate.GetValueOrDefault() < DateTime.Now); }
public static bool IsCompletedPastDue(this ICompletableCalendarPeriod @this) { if ([email protected]()) { return(false); } return(@this.EndDate.GetValueOrDefault() < @this.CompletionDate.GetValueOrDefault()); }
public static bool IsCompleted(this ICompletableCalendarPeriod @this) { return(@this.CompletionDate.HasValue); }