public JobInterview Get(long id) { var jobInterview = _repository.Get(id); if (jobInterview != null) { jobInterview.JobApplicant = _jobApplicantService.Get(jobInterview.IdJobApplicant); jobInterview.UserTechnical = _userService.Get(jobInterview.IdUserTechnical); jobInterview.UserRecruiter = _userService.Get(jobInterview.IdUserRecruiter); if (jobInterview.IdJobFeedBack.HasValue) { jobInterview.JobFeedBack = _jobFeedBackService.Get(jobInterview.IdJobFeedBack.Value); } } return(jobInterview); }
public ActionResult <JobFeedBack> Get(long id) { try { var result = _jobFeedBackService.Get(id); if (result == null) { return(NotFound()); } else { return(Ok(result)); } } catch (Exception ex) { return(UnprocessableEntity(ex)); } }