Ejemplo n.º 1
0
 public function getAllDealers()
 {
     try {
         return \Akzo\Dealer::orderBy('depot_id', 'ASC')->orderBy('name', 'ASC')->get()->all();
     } catch (\PDOException $e) {
         $GLOBALS['logger']->info("Error: " . $e->getMessage());
         throw new \InvalidArgumentException(\Akzo\Product\ErrorMessages::PROCESS_ERROR, \Native5\Core\Http\StatusCodes::BAD_REQUEST);
     }
 }