public Product Get(string id) { var query = new SingleProductQuery(id.ToValidGuid()); var handler = ProductQueryHandlerFactory.Build(query); return(handler.Get()); }
public IEnumerable <Product> Products() { var query = new ProductQuery(); var handler = ProductQueryHandlerFactory.Build(query); return(handler.Get()); }