Ejemplo n.º 1
0
        public DateTime GetNonHolidayDateFrom(DateTime startDate)
        {
            var repo = new HolidayRepository();

            for (DateTime i = startDate; ; i = i.AddDays(1))
            {
                if (repo.IsHoliday(i))
                {
                    continue;
                }

                return(i);
            }
        }