A simple framework for CQRS pattern