コード例 #1
0
        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);
        }