public List <TestResultDto> GetAllTestResults() { var testResultList = _homeRepository.GetAllTestResults(); var testResultsDtoList = _mapper.Map <List <TestResultDto> >(testResultList); return(testResultsDtoList); }