Skip to content

Instantly share code, notes, and snippets.

@DeebiKaaRaviSankar
Created August 19, 2022 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeebiKaaRaviSankar/c5a2ce5727d32ae957c14af43fc30b18 to your computer and use it in GitHub Desktop.
Save DeebiKaaRaviSankar/c5a2ce5727d32ae957c14af43fc30b18 to your computer and use it in GitHub Desktop.
[HttpGet(DbConstants.Route_Get)]
public async Task<IActionResult> GetJobSeekerProfile()
{
_user_id = _controllerService.GetUserId(HttpContext);
_jobSeekerProfile = await _profileRepo.GetJobSeekerProfile(user_id: _user_id);
_jobSeekerProfileDTO = _mapper.Map<JobSeekerProfileDTO>(_jobSeekerProfile);
return await Task.FromResult(Ok(_jobSeekerProfileDTO));
}
// Route: job_seeker_profile/get/{id}
[HttpGet(DbConstants.Route_Get + "/{id}")]
public async Task<IActionResult> GetJobSeekerProfile(int id)
{
_jobSeekerProfile = await _profileRepo.GetJobSeekerProfile(user_id: id);
_jobSeekerProfileDTO = _mapper.Map<JobSeekerProfileDTO>(_jobSeekerProfile);
return await Task.FromResult(Ok(_jobSeekerProfileDTO));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment