74 if($location->
getId() <= 0)
76 return (
new NewItem($this->locationRepositories))
82 foreach($this->locationRepositories as $repository)
84 $res = $repository->save($location);
86 if(!$res->isSuccess())
88 $result->addErrors($res->getErrors());
96 if (!$res->isSuccess())
98 $result->addErrors($res->getErrors());