public function insertProduct($product) { $validation = $this->dataStandardized($product); $validation = $this->validationProduct($product); if (count($validation) > 0) { return $validation; } $productDa = new ProductDa(); $result = $productDa->InsertProduct($product); return $result; }
public function InsertProduct() { $da = new ProductDa(); $result = $da->InsertProduct($this->product); return result; }