src/OroCRM/Bundle/ContactBundle/Controller/Api/Rest/ContactEmailController.php 1 location
|
@@ 58-67 (lines=10) @@
|
55 |
|
* |
56 |
|
* @return Response |
57 |
|
*/ |
58 |
|
public function deleteAction($id) |
59 |
|
{ |
60 |
|
try { |
61 |
|
$this->getDeleteHandler()->handleDelete($id, $this->getManager()); |
62 |
|
|
63 |
|
return new JsonResponse(["id" => ""]); |
64 |
|
} catch (\Exception $e) { |
65 |
|
return new JsonResponse(["code" => $e->getCode(), "message" => $e->getMessage()], $e->getCode()); |
66 |
|
} |
67 |
|
} |
68 |
|
|
69 |
|
/** |
70 |
|
* {@inheritdoc} |
src/OroCRM/Bundle/ContactBundle/Controller/Api/Rest/ContactPhoneController.php 1 location
|
@@ 119-128 (lines=10) @@
|
116 |
|
* |
117 |
|
* @return Response |
118 |
|
*/ |
119 |
|
public function deleteAction($id) |
120 |
|
{ |
121 |
|
try { |
122 |
|
$this->getDeleteHandler()->handleDelete($id, $this->getManager()); |
123 |
|
|
124 |
|
return new JsonResponse(["id" => ""]); |
125 |
|
} catch (\Exception $e) { |
126 |
|
return new JsonResponse(["code" => $e->getCode(), "message"=>$e->getMessage() ], $e->getCode()); |
127 |
|
} |
128 |
|
} |
129 |
|
|
130 |
|
protected function getContactManager() |
131 |
|
{ |