Example #1
0
        public async Task <User> AddTestResult(TestResultDto testResult, int userId, int testId)
        {
            var dbTestResult = _mapper.Map <DbTestResult>(testResult);

            return(_mapper.Map <User>(await _testRepository.AddTestResultAsync(dbTestResult, userId, testId)));
        }