public async Task <StateApplicantDto> GetStateApplicantByJSAsync(GetStateApplicantByJSInput input) { var stateApplicant = await _stateApplicantRepo.GetAllListAsync(s => s.IDJobSeeker == input.IdJobSeeker && s.IDRecruitment == input.IdRecruitment); if (stateApplicant != null) { return(ObjectMapper.Map <StateApplicantDto>(stateApplicant[0])); } else { var temp = await _stateApplicantRepo.GetAsync(-1); return(ObjectMapper.Map <StateApplicantDto>(temp)); } }
public async Task <StateApplicantDto> GetByJS(GetStateApplicantByJSInput input) { return(await _stateApplicantAppService.GetStateApplicantByJSAsync(input)); }