|
@@ -36,7 +36,7 @@ abstract class LuBusiness {
|
36
|
36
|
|
37
|
37
|
/**
|
38
|
38
|
* @param $id int
|
39
|
|
- * @return LuDbo|null
|
|
39
|
+ * @return LuDbo
|
40
|
40
|
*/
|
41
|
41
|
public static function getById($id)
|
42
|
42
|
{
|
|
@@ -49,7 +49,7 @@ abstract class LuBusiness {
|
49
|
49
|
|
50
|
50
|
/**
|
51
|
51
|
* @param $id int
|
52
|
|
- * @return true
|
|
52
|
+ * @return int
|
53
|
53
|
*/
|
54
|
54
|
public static function deleteById($id)
|
55
|
55
|
{
|
|
@@ -57,7 +57,7 @@ abstract class LuBusiness {
|
57
|
57
|
if (!$res) {
|
58
|
58
|
self::notFound(static::getResourceName() . " not found");
|
59
|
59
|
}
|
60
|
|
- return true;
|
|
60
|
+ return $res;
|
61
|
61
|
}
|
62
|
62
|
|
63
|
63
|
/**
|