Where would you put action logic that handles validation?
Refactoring some duplicate code and wondering where you recommend putting validation logic for deletes on both
DeleteAction
and DeleteBulkAction
.
E.g
5 Replies
Trait maybe
Thanks what would you call it and store it in what namespace stucture?
Calling is a personal preference as well as where to store
The reason I asked was to learn what other people are doing. Maybe there's a structural pattern to follow.
For traits I would say personal preference