示例#1
0
        public async Task <TestResultDetailDto> GetTestResultById(int testResultId)
        {
            TestResult testResult = await testResultRepository.GetByIdAsync(id : testResultId, includeProperties : prop => prop
                                                                            .Include(r => r.Url)
                                                                            .ThenInclude(u => u.Test));

            return(mapper.Map <TestResultDetailDto>(testResult));
        }