Having an input from the client-side (browser), I need to perform a transaction on the server-side, on the database to be specific (business logic).
Is a good practice to make validations on the user input before making the transaction ? Am I violating the "Single responsibility principle" ?
EDIT: single responsibility principle - my bad, it doesn't make sense here.
Best regards.