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