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 IsHoliday(DateTime date) { return(ReferencesProvider.GetHolidays().Contains(date.Date)); }