コード例 #1
0
        public ActionResult <JobOfferDTO> GetJobOfferById(int id)
        {
            var jobOfferItems = _jobOfferRepository.GetJobOfferById(id);

            if (jobOfferItems == null)
            {
                return(NotFound());
            }
            var result = _mapper.Map <JobOfferDTO>(jobOfferItems);

            return(Ok(result));
        }