public async Task <JobSeekerDto> CreateJobSeekerAsync(CreateJobSeekerInputDto input) { var jobSeeker = ObjectMapper.Map <JobSeeker>(input); jobSeeker = await _jobSeekerRepo.InsertAsync(jobSeeker); Console.WriteLine("ZZZ"); await CurrentUnitOfWork.SaveChangesAsync(); return(ObjectMapper.Map <JobSeekerDto>(jobSeeker)); }
public async Task <IActionResult> Create(CreateJobSeekerInputDto input) { var newJobSeeker = await _jobSeekerAppService.CreateJobSeekerAsync(input); return(CreatedAtRoute("GetJobSeeker", new { id = newJobSeeker.Id }, newJobSeeker)); }