public IActionResult GetByManagerId(int managerId) { var listOfJobs = _jobRepository.GetByManagerId(managerId); if (listOfJobs == null) { return(NotFound()); } return(Ok(listOfJobs)); }