Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public static bool IsExceptionalWorkingDay(DateTime date)
 {
     return(ReferencesProvider.GetExceptionalWorkingDays().Contains(date.Date));
 }