public async Task <bool> StudentAndGroupExists(Guid groupId, Guid studentId) { var result = await Task.WhenAll(_groupsRepository.IdExists(groupId), _studentsRepository.IdExists(studentId)); return(result.All(x => x)); }