/**
  * @param $lectureId
  * @param $participantId
  * @Method('POST', 'GET')
  * @Route('lectures/{integer $lectureId}/deleteparticipant/{integer $participantId}')
  * @throws \Exception
  */
 public function deleteParticipant(integer $lectureId, integer $participantId)
 {
     $service = new LecturesService($this->dbContext);
     $result = $service->deleteParticipant($lectureId, $participantId);
     $this->processResponse($result);
     $this->redirect('conferences', 'own');
 }
 public function batchBook(BatchBookLectures $lectures) : ServiceResponse
 {
     $lectureService = new LecturesService($this->dbContext);
     $responses = [];
     foreach ($lectures->getLectureIds() as $lectureId) {
         $response = $lectureService->addParticipant($lectureId, HttpContext::getInstance()->getIdentity()->getUserId());
         $responses[] = $response;
     }
     return new ServiceResponse(null, null, $responses);
 }