I want to get my new inserted row id after save

if ($model->save) :
...
//Do something with my new id
...
endif;