public async Task <int> GetResultOfTest(int userId) { var result = await resultsRepository.GetResultOfTest(userId); return(result.Rating); }