CQRS implementation with a sample