/** * Deletes a seller contact. * * @param int $seller_id Seller ID. * @param int $id Contact ID. * * @return void */ public function delete_index($seller_id = null, $id = null) { $contact = $this->get_contact($id); $deleted = \Service_Contact::unlink($contact, \Seller::active()); if (!$deleted) { throw new HttpServerErrorException(); } }
/** * Deletes a contact. * * @param int $customer_id Customer ID. * @param int $id Contact ID. * * @return void */ public function delete_index($customer_id = null, $id = null) { $customer = $this->get_customer($customer_id); $contact = $this->get_contact($id, $customer); $deleted = \Service_Contact::unlink($contact, $customer); if (!$deleted) { throw new HttpServerErrorException(); } }