public async Task Check(int projectId)
        {
            var submissions = await _repository.GetSubmissions(projectId);

            var combinations = Combinations(submissions);
            var plagiarized  = new List <Submission>();

            foreach (var(first, second) in combinations)
            {
                if (first.SubmissionFiles.Any(p =>
                                              second.SubmissionFiles.Select(s => s.Content.RemoveWhiteSpace()).Contains(p.Content.RemoveWhiteSpace())))
                {
                    plagiarized.Add(first);
                    plagiarized.Add(second);
                }
            }

            await _repository.Plagiarized(plagiarized);
        }
 public Task <IEnumerable <Submission> > GetSubmissions(Guid teacherCode)
 {
     return(_gradeBookRepository.GetSubmissions(teacherCode));
 }