public static async Task <HashSet <Guid> > GetSolvedSlides(IUserSolutionsRepo solutionsRepo, IUserQuizzesRepo userQuizzesRepo, Course course, string userId) { var solvedSlides = await solutionsRepo.GetIdOfPassedSlides(course.Id, userId); solvedSlides.UnionWith(await userQuizzesRepo.GetPassedSlideIdsAsync(course.Id, userId)); return(solvedSlides); }
public static HashSet <Guid> GetSolvedSlides(IUserSolutionsRepo solutionsRepo, IUserQuizzesRepo userQuizzesRepo, Course course, string userId) { var solvedSlides = solutionsRepo.GetIdOfPassedSlides(course.Id, userId); solvedSlides.UnionWith(userQuizzesRepo.GetPassedSlideIds(course.Id, userId)); return(solvedSlides); }