Exemple #1
0
        public async Task <IList <AssignmentResultDto> > GetResultsForUserAsync(int chapterId, int userId, DateTime?dateUtc)
        {
            var assignmentsWithResults = await _testResultRepository.GetLastTestResultsOfChapterAsync(chapterId, userId, dateUtc);

            return(assignmentsWithResults.Select(a => _assignmentWitResultsConverter.ToAssignmentResultDto(a)).ToList());
        }