Where to put logic for "create or update" stuff?

2003-06-02 Thread José Ventura
I have a use case in wich a user will be created if its ID is null, or updated otherwise. What would be the preferrable approach? a) My business services layer provides both createUser() and updateUser(), and I determine wich one to call inside my Action (by testing user.getId() ), or: b) My

Re: Where to put logic for "create or update" stuff?

2003-06-02 Thread Rick Reumann
On Sun, 01 Jun 2003 17:54:06 -0300, José Ventura wrote: > I have a use case in wich a user will be created if its ID is null, or > updated otherwise. > > What would be the preferrable approach? > > a) My business services layer provides both createUser() and > updateUser(), and I determine wich