public IEnumerable <ApplicationHousekeepingRequest> GetHousekeepingRequests() { var vacancyExpiryDate = GetHousekeepingDate(); var requests = _apprenticeshipApplicationReadRepository .GetApplicationsSubmittedOnOrBefore(vacancyExpiryDate) .Select(each => new ApplicationHousekeepingRequest { ApplicationId = each, VacancyType = VacancyType.Apprenticeship }) .ToList(); requests.AddRange(_traineeshipApplicationReadRepository .GetApplicationsSubmittedOnOrBefore(vacancyExpiryDate) .Select(each => new ApplicationHousekeepingRequest { ApplicationId = each, VacancyType = VacancyType.Traineeship })); return(requests); }