CRUD Practices

Posted 3 years ago by kjnvalkjnsb

Hey guys I have a question regarding the best way of performing CRUD operations on my models when I may only need a create operation or update for some things...

When data is posted, should I always have a relevant resourceful controller to handle the request or is it ok to have a generic controller that handles a variety of http requests that on a particular method, collects the input and after validating passes the data to a relevant service for parsing and persisting?

Trying to put a finger on the best practice for this sort of stuff.

Please sign in or create an account to participate in this conversation.