-
-
Save DeebiKaaRaviSankar/c5a2ce5727d32ae957c14af43fc30b18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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