public CandidateSearchViewModel(CandidateSearchModel searchParams, ScoredCandidatesListViewModel candidates)
 {
     SearchParams = searchParams;
     Candidates = candidates;
 }
 public CandidateSearchViewModel()
 {
     SearchParams = new CandidateSearchModel();
     Candidates = new ScoredCandidatesListViewModel();
 }
Пример #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;
 }
Пример #4
0
 public CandidateSearchViewModel MapToCandidateSearchViewModel(CandidateSearchModel searchModel, ScoredCandidatesListViewModel candidatesListViewModel)
 {
     return new CandidateSearchViewModel(searchModel, candidatesListViewModel);
 }
Пример #5
0
 public CandidateSearchViewModel GetCandidatesSearchViewModelWithoutCandidates(CandidateSearchModel searchModel)
 {
     var scoredCandidatesListViewModel = new ScoredCandidatesListViewModel();
     var candidateSearchViewModel = _mappingService.MapToCandidateSearchViewModel(searchModel, scoredCandidatesListViewModel);
     return candidateSearchViewModel;
 }