public void RequestProductDiscussion(RequestProductDiscussionCommand command) { var product = this.productRepository.Get(new TenantId(command.TenantId), new ProductId(command.ProductId)); if (product == null) throw new InvalidOperationException( string.Format("Unknown product of tenant id: {0} and product id: {1}.", command.TenantId, command.ProductId)); RequestProductDiscussionFor(product); }
public void RequestProductDiscussion(RequestProductDiscussionCommand command) { var product = this.productRepository.Get(new TenantId(command.TenantId), new ProductId(command.ProductId)); if (product == null) { throw new InvalidOperationException( string.Format("Unknown product of tenant id: {0} and product id: {1}.", command.TenantId, command.ProductId)); } RequestProductDiscussionFor(product); }