-
-
Save DeebiKaaRaviSankar/4c1265c6a49d45a5942d0a22fffa14fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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> GetPostJob() | |
| { | |
| _user_id = _controllerService.GetUserId(HttpContext); | |
| _postJobDTOs = await _postJobRepo.GetPostJobs(user_id: _user_id); | |
| return await Task.FromResult(Ok(_postJobDTOs)); | |
| } | |
| // Route: post_job/get | |
| [Authorize(Roles = DbConstants.Role_Employer + "," + DbConstants.Role_JobSeeker)] | |
| [HttpGet(DbConstants.Route_Get + "/{id}")] | |
| public async Task<IActionResult> GetPostJob(int id) | |
| { | |
| postJobResponseDTO = await _postJobRepo.GetPostJobByID(id); | |
| return await Task.FromResult(Ok(postJobResponseDTO)); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment