public CandidateSearchViewModel(CandidateSearchModel searchParams, ScoredCandidatesListViewModel candidates)
 {
     SearchParams = searchParams;
     Candidates = candidates;
 }
 public CandidateSearchViewModel()
 {
     SearchParams = new CandidateSearchModel();
     Candidates = new ScoredCandidatesListViewModel();
 }
Exemplo n.º 3
0
 public async Task<CandidateSearchViewModel> GetCandidateSearchViewModelForOffer(string offerId)
 {
     var offer = await GetJobOfferByIdAsync(offerId);
     var candidateSearchModel = _mappingService.MapToCandidateSearchModel(offer);
     var candidatesListViewModel = new ScoredCandidatesListViewModel();
     var candidateSearchViewModel = _mappingService.MapToCandidateSearchViewModel(candidateSearchModel, candidatesListViewModel);
     return candidateSearchViewModel;
 }
Exemplo n.º 4
0
 public CandidateSearchViewModel MapToCandidateSearchViewModel(CandidateSearchModel searchModel, ScoredCandidatesListViewModel candidatesListViewModel)
 {
     return new CandidateSearchViewModel(searchModel, candidatesListViewModel);
 }
Exemplo n.º 5
0
 public CandidateSearchViewModel GetCandidatesSearchViewModelWithoutCandidates(CandidateSearchModel searchModel)
 {
     var scoredCandidatesListViewModel = new ScoredCandidatesListViewModel();
     var candidateSearchViewModel = _mappingService.MapToCandidateSearchViewModel(searchModel, scoredCandidatesListViewModel);
     return candidateSearchViewModel;
 }