Example #1
0
 public AccountController(ApiHttpClient apiClient, CustomSettings settings, LoadJobsService jobsService, UpdateApplicantService updateApplicantService, UpdateApplicantFileService updateApplicantFileService)
     : base(apiClient, settings)
 {
     _updateApplicantFileService = updateApplicantFileService;
     _updateApplicantService     = updateApplicantService;
     _jobsService = jobsService;
 }
Example #2
0
 public SyndicationController(ApiHttpClient apiClient, CustomSettings settings, LoadJobsService jobsService, UrlBuilderService urlBuilder, ReferrerService referrerService)
     : base(apiClient, settings)
 {
     _referrerService = referrerService;
     _urlBuilder      = urlBuilder;
     _jobsService     = jobsService;
 }
Example #3
0
        public async Task <IndexViewModel> Build(MandatorResponse mandator, LoadJobsService loadJobsService, Uri requestUrl)
        {
            var publishedJobs = await loadJobsService.LoadJobsForCurrentPortal(requestUrl, mandator);

            foreach (var application in Applications)
            {
                if (publishedJobs.Jobs.Any(x => x.Id == application.JobId))
                {
                    application.Job            = publishedJobs.Jobs.Single(x => x.Id == application.JobId).Title;
                    application.JobIsPublished = true;
                }
                else
                {
                    application.Job            = (await loadJobsService.LoadSingleJob(application.JobId)).Title;
                    application.JobIsPublished = false;
                }
            }

            return(this);
        }
Example #4
0
 public ApplicationController(ApiHttpClient apiClient, CustomSettings settings, LoadJobsService jobsService)
     : base(apiClient, settings)
 {
     _jobsService = jobsService;
 }
Example #5
0
        protected async Task <JobResponse> GetJob(MandatorResponse mandatorResponse, LoadJobsService jobsService, int jobId)
        {
            var jobsResponse = await jobsService.LoadJobsForCurrentPortal(Request.Url, mandatorResponse);

            return(jobsResponse.Jobs.FirstOrDefault(x => x.Id == jobId));
        }
Example #6
0
 protected async Task <JobResponse> GetJob(LoadJobsService jobsService, int jobId)
 {
     return(await GetJob(await GetMandator(), jobsService, jobId));
 }