/** * @param ReservationItemView $existingReservation * @return bool */ public function Handle(ReservationItemView $existingReservation) { $reservation = $this->repository->LoadById($existingReservation->GetId()); $reservation->ApplyChangesTo(SeriesUpdateScope::ThisInstance); $reservation->Delete(ServiceLocator::GetServer()->GetUserSession()); $this->repository->Delete($reservation); return true; }
public function LoadByInstanceId($reservationInstanceId) { return $this->_repository->LoadById($reservationInstanceId); }