/**
  * 
  * @param unknown $dates
  */
 public function updateDates(Company $company, $dates)
 {
     try {
         $this->session->successFlashMessage('flash.message.availability.index');
         return $this->repository->updateDates($company->getId(), $dates);
     } catch (\Exception $e) {
         $this->session->errorFlashMessage();
         $this->logger->error($e->getMessage());
     }
 }
Beispiel #2
0
 /**
  * [findTownsByCompany description]
  * @param  [type] $company [description]
  * @return [type]          [description]
  */
 public function findTownsByCompany(Company $company)
 {
     return $this->repository->findTownsByCompany($company->getId());
 }
 /**
  * Get all devis
  */
 public function getRadius(Company $company)
 {
     return $this->repository->getRadius($company->getId());
 }