I want to do redirect after do function from model. I already tried both code below, both works redirect, but both return error too.
Redirect 1 :
Redirect 2 :
$resultRedirect = $this->resultRedirectFactory->create(); return $resultRedirect->setPath('*/*/addresses');
Is there another way to redirect from model without returning error?