public function removeRowAction() { if ($this->request->isPost() && $this->request->isXmlHttpRequest()) { $row = $this->invoiceService->getRowById($this->request->getPost()->rowId); if ($row) { $this->invoiceService->deleteRow($row); } } return $this->response; }