public async Task <JobTitleDto[]> Handle(GetJobTitlesQuery request, CancellationToken cancellationToken) { var jobTitles = await _jobTitleRepository.GetAll(); return(jobTitles.Select(p => new JobTitleDto { Id = p.Id, Name = p.Name, Description = p.Description }).ToArray()); }
public List <JobTitle> GetAll() { return(jobTitleRep.GetAll()); }
public IEnumerable <JobTitle> GetAllJobTitles() { return(_jobtitleRepository.GetAll()); }