Esempio n. 1
0
 public function save(EntityInterface $entity, $route = 'save')
 {
     return $this->execute($this->factoryMap($route), $entity->toJson($route));
 }
Esempio n. 2
0
 public function add(EntityInterface $entity, $productId)
 {
     return $this->execute($this->factoryMap('add', ['productId' => $productId]), $entity->toJson());
 }