Thanks for clearing some questions. If I understand correctly, in you code is the client who create the instance of the employee and the application layer use it diretly. Wouldn't it better the application layer get the information from the database to be sure is correct and not trust in what the client send to the service?
↧