public async Task <IActionResult> GetAnyJobs(int userId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            IEnumerable <Job> directJobs = await _repo.GetAnyJobs(userId);

            var jobs = _mapper.Map <IEnumerable <JobForReturnDto> >(directJobs);

            return(Ok(jobs));
        }