Exemplo n.º 1
0
        public async Task <IEnumerable <TestAttempt> > GetAttemptsById(Guid userId)
        {
            var allAttempts = await _tempAttemptRepository.GetAllAsync();

            var result = allAttempts.Where(x => x.UserId == userId);

            return(result);
        }
 public async Task <IEnumerable <TestAttempt> > GetAllAsync()
 {
     return(await _testAttemptRepository.GetAllAsync());
 }