public async Task <RecruitmentDto> DisableRecruitmentAsync(RecruitmentDisable input)
        {
            var recruitment = await _RecruimentpostRepo.GetAsync(input.Id);

            ObjectMapper.Map(input, recruitment);
            var savedRecruitment = await _RecruimentpostRepo.UpdateAsync(recruitment);

            return(ObjectMapper.Map <RecruitmentDto>(savedRecruitment));
        }
Exemplo n.º 2
0
 public async Task <RecruitmentDto> Disable(RecruitmentDisable input)
 {
     return(await _recruitPostAppService.DisableRecruitmentAsync(input));
 }