コード例 #1
0
        public Product Get(string id)
        {
            var query   = new SingleProductQuery(id.ToValidGuid());
            var handler = ProductQueryHandlerFactory.Build(query);

            return(handler.Get());
        }
コード例 #2
0
        public IEnumerable <Product> Products()
        {
            var query   = new ProductQuery();
            var handler = ProductQueryHandlerFactory.Build(query);

            return(handler.Get());
        }