public void DeleteRun(int runId) { var allReservations = _reservationRepository.GetAllForRun(runId); if (allReservations.Any(p => _resService.IsActive(p))) { throw new InvalidOperationException(String.Format("run {0} can not be deleted becouse some of it's places has been reserved", runId)); } _runRepo.DeleteRun(runId); }