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());
            }
Esempio n. 2
0
 public List <JobTitle> GetAll()
 {
     return(jobTitleRep.GetAll());
 }
Esempio n. 3
0
 public IEnumerable <JobTitle> GetAllJobTitles()
 {
     return(_jobtitleRepository.GetAll());
 }