private bool AssignmentExists(int studentId, int projectId)
 {
     return(_assignmentRepository.Any(a => a.StudentId == studentId && a.ProjectId == projectId));
 }