Skip to content

Instantly share code, notes, and snippets.

@DeebiKaaRaviSankar
Created August 19, 2022 05:59
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/0ba5aeeb053808735e2ddae27535fd6f to your computer and use it in GitHub Desktop.
Save DeebiKaaRaviSankar/0ba5aeeb053808735e2ddae27535fd6f to your computer and use it in GitHub Desktop.
[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