How to mimic create action?

So i have 2 button, the default create form action and save as draft, i want save as draft is 99% same with the normal one, the only difference is the status how do i do that? i've tried this but i have to manually give validation how do i mimic the original one?

protected function getFormActions(): array
{
    return array_merge(
        [
            Action::make('Save as draft')
                ->action('saveAsDraft')
        ],
        parent::getFormActions()
    );
}

public function saveAsDraft($data) {
    $data = $this->form->getRawState();
    $data["status_project"] = ProjectStatus::DRAFT;
    static::getModel()::create($data);
}
Was this page helpful?