wesmiler 2 недель назад
Родитель
Сommit
f4669734f1
1 измененных файлов с 2 добавлено и 10 удалено
  1. 2 10
      app/Http/Controllers/Admin/StoreController.php

+ 2 - 10
app/Http/Controllers/Admin/StoreController.php

@@ -97,11 +97,7 @@ class StoreController extends Backend
      */
     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()
     {
-        if ($this->service->edit()) {
-            return message($this->service->getError(), true);
-        } else {
-            return message($this->service->getError(), false);
-        }
+        return $this->service->edit();
     }
 
     /**