Action and Code Reusability exercise


I am facing a problem with this exercise.

"(Optional) Add Actions to Create or Update Movies and  People"

I am able to add a new movie but when i update i still keep the old movie.

And nose sure if i should split the methos, by using loginc update and create instead of using createorupdate...

is the somebody with the same issue?

You do not need to split methods use a create and update action.

What decide if is a create or an update is if the primary key is null when you call the action.

Can you provide oml ?

i did this a couple of weaks ago here an example