Handling when client send null
Make entity as argument and the rest of criteria optional