Beispiel #1
0
 public static bool IsWorkingDay(this DateTime date)
 {
     return(date.DayOfWeek != DayOfWeek.Saturday &&
            date.DayOfWeek != DayOfWeek.Sunday &&
            !ReferencesProvider.GetHolidays().Contains(date.Date) ||
            ReferencesProvider.GetExceptionalWorkingDays().Contains(date.Date));
 }
Beispiel #2
0
 public static bool IsExceptionalWorkingDay(DateTime date)
 {
     return(ReferencesProvider.GetExceptionalWorkingDays().Contains(date.Date));
 }