|
@@ -97,11 +97,7 @@ class StoreController extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function add()
|
|
public function add()
|
|
|
{
|
|
{
|
|
|
- if ($this->service->edit()) {
|
|
|
|
|
- return message($this->service->getError(), true);
|
|
|
|
|
- } else {
|
|
|
|
|
- return message($this->service->getError(), false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return $this->service->edit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -110,11 +106,7 @@ class StoreController extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function edit()
|
|
public function edit()
|
|
|
{
|
|
{
|
|
|
- if ($this->service->edit()) {
|
|
|
|
|
- return message($this->service->getError(), true);
|
|
|
|
|
- } else {
|
|
|
|
|
- return message($this->service->getError(), false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return $this->service->edit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|