public async Task <StateApplicationDto> GetStateApplicationByJSAsync(GetStateApplicationByJSInput input) { var stateApplication = await _stateApplicationRepo.GetAllListAsync(s => s.IDJobSeeker == input.IdJobSeeker && s.IDRecruitment == input.IdRecruitment); if (stateApplication != null) { return(ObjectMapper.Map <StateApplicationDto>(stateApplication[0])); } else { var temp = await _stateApplicationRepo.GetAsync(-1); return(ObjectMapper.Map <StateApplicationDto>(temp)); } }
public async Task <StateApplicationDto> GetByJS(GetStateApplicationByJSInput input) { return(await _stateApplicationAppService.GetStateApplicationByJSAsync(input)); }