/**
  * Create a resource
  *
  * @param  mixed $data
  * @return ApiProblem|mixed
  */
 public function create($data)
 {
     if (!$this->userService->isSalesMan()) {
         return new ApiProblem(403, 'Only salesman can create orders.');
     }
     $result = $this->orderService->insert($data);
     if ($result == 'error') {
         return new ApiProblem(405, 'Error processing order');
     } else {
         return $result;
     }
 }