So I moved all my CRUD commands to a service class, but I realized that my Object passing through to POST is giving a null reference exception if it empty. I thought my if statement object == null would catch it but it seems that in my object properties the time stamp I created isn't giving a full null object. I was thinking of setting up a try/catch where it'll either send error as a log or return the statement in the swagger call output.
Is it best practice to setup try/catch in a POST service request?