public DateTime GetBookReturnDateFromNow(BookInfo bookInfo) { using (var sectionRepo = new SectionRepository()) { var section = sectionRepo.FindById(bookInfo.SectionId); if (section == null) { throw new InvalidOperationException("I don't know which section does " + bookInfo.BookTitle + " belongs to."); } return(holidayService.GetNonHolidayDateFrom(DateTime.Now.AddDays(section.MaxDaysAllowedForBorrowing))); } }