public WorkingScheduleItem GetScheduleForDay(DateTime day)
        {
            WorkingScheduleItem sched = GetScheduleForHoliday(day);

            if (sched == null)
            {
                sched = GetScheduleForDay(day.DayOfWeek);
            }
            return(sched);
        }
        //public static WorkingScheduleDto Convert2Dto(WorkingSchedule p)
        //{
        //    WorkingScheduleDto result = new WorkingScheduleDto();
        //    foreach (WorkingScheduleItem item in p.Items)
        //    {
        //        result.Items.Add(WorkingScheduleItem.Convert2Dto(item));
        //    }
        //    foreach (Holiday item in p.Holidays)
        //    {
        //        result.Holidays.Add(Holiday.Convert2Dto(item));
        //    }

        //    return result;
        //}

        //public static WorkingSchedule ExtractFromDto(WorkingScheduleDto op)
        //{
        //    WorkingSchedule result = new WorkingSchedule();
        //    foreach (WorkingScheduleItemDto item in op.Items)
        //    {
        //        result.Items.Add(WorkingScheduleItem.ExtractFromDto(item));
        //    }
        //    foreach (HolidayDto hDto in op.Holidays)
        //    {
        //        result.Holidays.Add(Holiday.ExtractFromDto(hDto));
        //    }
        //    return result;
        //}

        private WorkingScheduleItem GetScheduleForHoliday(DateTime day)
        {
            WorkingScheduleItem holiday = Items.FirstOrDefault(h => h.WeekDay == day.Date.ToString("yyyy-MM-dd"));

            return(holiday);
        }