public async Task <ActionResult <VacancyDto> > GetById(int id) { var vacancy = await _repository.GetById(id); if (vacancy == null) { return(NotFound(VacancyNotFound)); } return(Ok(vacancy)); }
public Vacancy GetById(int id) { return(_vacancyRepository.GetById(id)); }