public async Task <IEnumerable <TimeEntryResponse> > GetLearnerTimeEntriesAsync(LearnerTimeEntryRequest req)
        {
            var result = await _repo.GetLearnerAsync(req.Year, req.Id);

            return(result.Select(x => _mapper.Map(x)).ToList());
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <ReportResponse> > GetLearnerReportsAsync(LearnerReportRequest req)
        {
            var results = await _repo.GetLearnerAsync(req.Year, req.Id);

            return(results.Select(x => _mapper.Map(x)).ToList());
        }