public DateTime GetNonHolidayDateFrom(DateTime startDate) { var repo = new HolidayRepository(); for (DateTime i = startDate; ; i = i.AddDays(1)) { if (repo.IsHoliday(i)) { continue; } return(i); } }
public DateTime GetNonHolidayDateFrom(DateTime startDate) { var repo = new HolidayRepository(); for (DateTime i = startDate; ; i = i.AddDays(1)) { if (repo.IsHoliday(i)) { continue; } return(i); } }